fix daily date update

This commit is contained in:
Johannes
2022-03-31 00:28:42 +02:00
parent 147b99d254
commit b4075826f3

View File

@@ -25,6 +25,9 @@ class LuiController(object):
time = datetime.time(0, 0, 0) time = datetime.time(0, 0, 0)
ha_api.run_minutely(self._pages_gen.update_time, time) ha_api.run_minutely(self._pages_gen.update_time, time)
# Setup date callback
self.api.run_daily(self._pages_gen.update_date, time)
# weather callback # weather callback
weather_interval = 15 * 60 # 15 minutes weather_interval = 15 * 60 # 15 minutes
ha_api.run_every(self.weather_update, "now", weather_interval) ha_api.run_every(self.weather_update, "now", weather_interval)