Skip to content

Commit

Permalink
remove _attr_forecast too
Browse files Browse the repository at this point in the history
  • Loading branch information
IATkachenko committed Mar 30, 2024
1 parent 5061fd0 commit 41aab50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/yandex_weather/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
ATTR_API_WIND_GUST,
ATTR_API_WIND_SPEED,
ATTR_API_YA_CONDITION,
ATTRIBUTION, ATTR_FORECAST_DATA, CONF_IMAGE_SOURCE,
ATTRIBUTION,
ATTR_FORECAST_DATA,
CONF_IMAGE_SOURCE,
DOMAIN,
ENTRY_NAME,
UPDATER,
Expand Down Expand Up @@ -206,7 +208,6 @@ def _handle_coordinator_update(self) -> None:
image=self.coordinator.data.get(ATTR_API_IMAGE),
)
self._twice_daily_forecast = self.coordinator.data.get(ATTR_FORECAST_DATA, [])
self._attr_forecast = self._twice_daily_forecast # backward compatibility
self._attr_humidity = self.coordinator.data.get(ATTR_API_HUMIDITY)
self._attr_native_pressure = self.coordinator.data.get(ATTR_API_PRESSURE)
self._attr_native_temperature = self.coordinator.data.get(ATTR_API_TEMPERATURE)
Expand Down

0 comments on commit 41aab50

Please sign in to comment.