actually load config to read timezone for clock

This commit is contained in:
Chuck
2025-07-17 13:19:24 -05:00
parent 1922d5e3b0
commit 193dbad0f0
2 changed files with 2 additions and 2 deletions

View File

@@ -73,7 +73,7 @@
},
"clock": {
"enabled": true,
"format": "%H:%M:%S",
"format": "%I:%M %p",
"update_interval": 1
},
"weather": {

View File

@@ -12,7 +12,7 @@ logger = logging.getLogger(__name__)
class Clock:
def __init__(self, display_manager: DisplayManager = None):
self.config_manager = ConfigManager()
self.config = self.config_manager.config
self.config = self.config_manager.load_config()
# Use the provided display_manager or create a new one if none provided
self.display_manager = display_manager or DisplayManager(self.config.get('display', {}))
logger.info("Clock initialized with display_manager: %s", id(self.display_manager))