Skip to content

Commit f099ecf

Browse files
committed
More weather tweaks
1 parent 21de263 commit f099ecf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

weather/openmeteo_com_weather.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,10 @@ def _get_data(self):
112112
f"{self.address}&daily=sunrise,sunset,weather_code,wind_direction_10m_dominant,relative_humidity_2m_mean,temperature_2m_mean,wind_speed_10m_mean&hourly=temperature_2m,relative_humidity_2m,wind_speed_10m,wind_direction_10m,weather_code&timezone=auto&forecast_days=14&wind_speed_unit=ms&language={self._device['language']}"
113113
)
114114

115+
# Hourly overrules daily. The data will be sorted later on
115116
return_data["forecast"] = {
116-
**self.__process_hourly_data(json_data.get("hourly", [])),
117117
**self.__process_daily_data(json_data.get("daily", [])),
118+
**self.__process_hourly_data(json_data.get("hourly", [])),
118119
}
119120

120121
# Get history data

0 commit comments

Comments
 (0)