Remove deprecated forecast attribute from WeatherEntity (#110761)
* Remove deprecated forecast attribute from WeatherEntity * Fix some * Ruff * ipma * buienradar * some more * Some more * More and more * strings * attr_forecast * Fix nws * Fix * remove from coverage * Remove recorder test * Review comments
This commit is contained in:
parent
1269031d11
commit
65230908c6
31 changed files with 37 additions and 1596 deletions
|
@ -185,7 +185,7 @@ class OpenWeatherMapWeather(SingleCoordinatorWeatherEntity[WeatherUpdateCoordina
|
|||
return self.coordinator.data[ATTR_API_WIND_BEARING]
|
||||
|
||||
@property
|
||||
def forecast(self) -> list[Forecast] | None:
|
||||
def _forecast(self) -> list[Forecast] | None:
|
||||
"""Return the forecast array."""
|
||||
api_forecasts = self.coordinator.data[ATTR_API_FORECAST]
|
||||
forecasts = [
|
||||
|
@ -201,9 +201,9 @@ class OpenWeatherMapWeather(SingleCoordinatorWeatherEntity[WeatherUpdateCoordina
|
|||
@callback
|
||||
def _async_forecast_daily(self) -> list[Forecast] | None:
|
||||
"""Return the daily forecast in native units."""
|
||||
return self.forecast
|
||||
return self._forecast
|
||||
|
||||
@callback
|
||||
def _async_forecast_hourly(self) -> list[Forecast] | None:
|
||||
"""Return the hourly forecast in native units."""
|
||||
return self.forecast
|
||||
return self._forecast
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue