mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Version Bump for WeatherFlow Cloud Backing Lib (#114302)
Version bump to support stations going offline for some time
This commit is contained in:
parent
6289082dab
commit
fc596cde44
@ -4,7 +4,7 @@ from datetime import timedelta
|
||||
|
||||
from aiohttp import ClientResponseError
|
||||
from weatherflow4py.api import WeatherFlowRestAPI
|
||||
from weatherflow4py.models.rest.unified import WeatherFlowData
|
||||
from weatherflow4py.models.rest.unified import WeatherFlowDataREST
|
||||
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.exceptions import ConfigEntryAuthFailed
|
||||
@ -14,7 +14,7 @@ from .const import DOMAIN, LOGGER
|
||||
|
||||
|
||||
class WeatherFlowCloudDataUpdateCoordinator(
|
||||
DataUpdateCoordinator[dict[int, WeatherFlowData]]
|
||||
DataUpdateCoordinator[dict[int, WeatherFlowDataREST]]
|
||||
):
|
||||
"""Class to manage fetching REST Based WeatherFlow Forecast data."""
|
||||
|
||||
@ -29,7 +29,7 @@ class WeatherFlowCloudDataUpdateCoordinator(
|
||||
update_interval=timedelta(minutes=15),
|
||||
)
|
||||
|
||||
async def _async_update_data(self) -> dict[int, WeatherFlowData]:
|
||||
async def _async_update_data(self) -> dict[int, WeatherFlowDataREST]:
|
||||
"""Fetch data from WeatherFlow Forecast."""
|
||||
try:
|
||||
async with self.weather_api:
|
||||
|
@ -5,5 +5,5 @@
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/weatherflow_cloud",
|
||||
"iot_class": "cloud_polling",
|
||||
"requirements": ["weatherflow4py==0.2.13"]
|
||||
"requirements": ["weatherflow4py==0.2.17"]
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from weatherflow4py.models.rest.unified import WeatherFlowData
|
||||
from weatherflow4py.models.rest.unified import WeatherFlowDataREST
|
||||
|
||||
from homeassistant.components.weather import (
|
||||
Forecast,
|
||||
@ -79,7 +79,7 @@ class WeatherFlowWeather(
|
||||
)
|
||||
|
||||
@property
|
||||
def local_data(self) -> WeatherFlowData:
|
||||
def local_data(self) -> WeatherFlowDataREST:
|
||||
"""Return the local weather data object for this station."""
|
||||
return self.coordinator.data[self.station_id]
|
||||
|
||||
|
@ -2838,7 +2838,7 @@ watchdog==2.3.1
|
||||
waterfurnace==1.1.0
|
||||
|
||||
# homeassistant.components.weatherflow_cloud
|
||||
weatherflow4py==0.2.13
|
||||
weatherflow4py==0.2.17
|
||||
|
||||
# homeassistant.components.webmin
|
||||
webmin-xmlrpc==0.0.2
|
||||
|
@ -2185,7 +2185,7 @@ wallbox==0.6.0
|
||||
watchdog==2.3.1
|
||||
|
||||
# homeassistant.components.weatherflow_cloud
|
||||
weatherflow4py==0.2.13
|
||||
weatherflow4py==0.2.17
|
||||
|
||||
# homeassistant.components.webmin
|
||||
webmin-xmlrpc==0.0.2
|
||||
|
Loading…
x
Reference in New Issue
Block a user