summaryrefslogtreecommitdiff
path: root/cached
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2021-10-23 23:49:08 -0700
committerScott Gasch <[email protected]>2021-10-23 23:49:08 -0700
commitd08bad64a6884f25d28a2c38c6cd1c87b4335188 (patch)
tree9d0e4381b4da1a543acf907b769d1d4d88a3377e /cached
parent351e77c767c9084aa486eedbdc9902c635b06261 (diff)
Adds site_config; adds Tuya lights. Bugfixes.
Diffstat (limited to 'cached')
-rw-r--r--cached/weather_data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cached/weather_data.py b/cached/weather_data.py
index 8d49736..89c330a 100644
--- a/cached/weather_data.py
+++ b/cached/weather_data.py
@@ -164,7 +164,7 @@ class CachedWeatherData(persistent.Persistent):
):
self.weather_data[today].high = high
continue
- most_common_condition = list_utils.most_common_item(conditions[dt])
+ most_common_condition = list_utils.most_common(conditions[dt])
icon = icon_by_condition.get(most_common_condition, '?')
if dt == now.date() and now.hour > 18 and condition == 'Clear':
icon = '🌙'