fix: Correct display method calls in controller run loop

This commit is contained in:
ChuckBuilds
2025-04-30 10:46:07 -05:00
parent 77d6e971db
commit 380ca46edd

View File

@@ -412,23 +412,23 @@ class DisplayController:
# Display current mode frame (only for non-live modes)
try:
if self.current_display_mode == 'clock' and self.clock:
self.clock.display()
self.clock.display_time(force_clear=self.force_clear)
elif self.current_display_mode == 'weather_current' and self.weather:
self.weather.display_current()
self.weather.display_weather(force_clear=self.force_clear)
elif self.current_display_mode == 'weather_hourly' and self.weather:
self.weather.display_hourly()
self.weather.display_hourly_forecast(force_clear=self.force_clear)
elif self.current_display_mode == 'weather_daily' and self.weather:
self.weather.display_daily()
self.weather.display_daily_forecast(force_clear=self.force_clear)
elif self.current_display_mode == 'stocks' and self.stocks:
self.stocks.display()
self.stocks.display_stocks(force_clear=self.force_clear)
elif self.current_display_mode == 'stock_news' and self.news:
self.news.display()
self.news.display_news()
elif self.current_display_mode == 'calendar' and self.calendar:
self.calendar.display()
self.calendar.display(force_clear=self.force_clear)
elif self.current_display_mode == 'nhl_recent' and self.nhl_recent:
self.nhl_recent.display(force_clear=self.force_clear)
@@ -446,10 +446,10 @@ class DisplayController:
self.mlb_upcoming.display(force_clear=self.force_clear)
elif self.current_display_mode == 'youtube' and self.youtube:
self.youtube.display()
self.youtube.display(force_clear=self.force_clear)
elif self.current_display_mode == 'text_display' and self.text_display:
self.text_display.display()
self.text_display.display(force_clear=self.force_clear)
except Exception as e:
logger.error(f"Error updating display for mode {self.current_display_mode}: {e}", exc_info=True)