Skip to content

Commit

Permalink
fix forecast deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
aronkahrs-us committed Jan 30, 2024
1 parent 61d8185 commit aa1aefb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions custom_components/inumet/weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ def native_visibility(self) -> float:
except:
return STATE_UNAVAILABLE

@property
def forecast(self) -> list[Forecast] | None:
def _forecast(self) -> list[Forecast] | None:
"""Return the forecast array."""
try:
if len(self.coordinator.data['pronostico']) <= 0:
Expand All @@ -185,4 +184,4 @@ def forecast(self) -> list[Forecast] | None:
@callback
def _async_forecast_daily(self) -> list[Forecast] | None:
"""Return the daily forecast in native units."""
return self.forecast
return self._forecast

0 comments on commit aa1aefb

Please sign in to comment.