Skip to content

Commit

Permalink
fix(forecast): restore forecast data on HA restart
Browse files Browse the repository at this point in the history
Fix #115
  • Loading branch information
IATkachenko authored Apr 14, 2024
1 parent 6c51079 commit 8b705e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/yandex_weather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ async def async_added_to_hass(self) -> None:
except TypeError:
pass

self._attr_extra_state_attributes = {}
self._attr_extra_state_attributes = {
ATTR_FORECAST_DATA: self._twice_daily_forecast,
}
for attribute in [
"feels_like",
"wind_gust",
Expand Down

0 comments on commit 8b705e3

Please sign in to comment.