fix: config.get usage

This commit is contained in:
Jan Häusler 2025-07-03 00:52:48 +02:00
parent ee7a4d716e
commit bc6fd8c7cf

View file

@ -27,7 +27,7 @@ def main():
# Initialize LLM processor if enabled # Initialize LLM processor if enabled
llm_processor = None llm_processor = None
if config_manager.get_value("enable_llm", False): if config_manager.get("enable_llm", False):
print("Initializing LLM processor...") print("Initializing LLM processor...")
script_path = os.path.abspath(__file__) script_path = os.path.abspath(__file__)
llm_processor = LLMProcessor(script_path) llm_processor = LLMProcessor(script_path)
@ -54,7 +54,7 @@ def main():
# Initialize the MCP server with the same Hue controller # Initialize the MCP server with the same Hue controller
# This runs in a separate thread # This runs in a separate thread
if config_manager.get_value("enable_mcp", True): # Enable by default if config_manager.get("enable_mcp", True): # Enable by default
mcp_thread = threading.Thread( mcp_thread = threading.Thread(
target=run_mcp_server, target=run_mcp_server,
args=(bridge_ip, update_interval), args=(bridge_ip, update_interval),