mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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 aiohttp import ClientResponseError
|
||||||
from weatherflow4py.api import WeatherFlowRestAPI
|
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.core import HomeAssistant
|
||||||
from homeassistant.exceptions import ConfigEntryAuthFailed
|
from homeassistant.exceptions import ConfigEntryAuthFailed
|
||||||
@ -14,7 +14,7 @@ from .const import DOMAIN, LOGGER
|
|||||||
|
|
||||||
|
|
||||||
class WeatherFlowCloudDataUpdateCoordinator(
|
class WeatherFlowCloudDataUpdateCoordinator(
|
||||||
DataUpdateCoordinator[dict[int, WeatherFlowData]]
|
DataUpdateCoordinator[dict[int, WeatherFlowDataREST]]
|
||||||
):
|
):
|
||||||
"""Class to manage fetching REST Based WeatherFlow Forecast data."""
|
"""Class to manage fetching REST Based WeatherFlow Forecast data."""
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ class WeatherFlowCloudDataUpdateCoordinator(
|
|||||||
update_interval=timedelta(minutes=15),
|
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."""
|
"""Fetch data from WeatherFlow Forecast."""
|
||||||
try:
|
try:
|
||||||
async with self.weather_api:
|
async with self.weather_api:
|
||||||
|
@ -5,5 +5,5 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/weatherflow_cloud",
|
"documentation": "https://www.home-assistant.io/integrations/weatherflow_cloud",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"requirements": ["weatherflow4py==0.2.13"]
|
"requirements": ["weatherflow4py==0.2.17"]
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from weatherflow4py.models.rest.unified import WeatherFlowData
|
from weatherflow4py.models.rest.unified import WeatherFlowDataREST
|
||||||
|
|
||||||
from homeassistant.components.weather import (
|
from homeassistant.components.weather import (
|
||||||
Forecast,
|
Forecast,
|
||||||
@ -79,7 +79,7 @@ class WeatherFlowWeather(
|
|||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def local_data(self) -> WeatherFlowData:
|
def local_data(self) -> WeatherFlowDataREST:
|
||||||
"""Return the local weather data object for this station."""
|
"""Return the local weather data object for this station."""
|
||||||
return self.coordinator.data[self.station_id]
|
return self.coordinator.data[self.station_id]
|
||||||
|
|
||||||
|
@ -2838,7 +2838,7 @@ watchdog==2.3.1
|
|||||||
waterfurnace==1.1.0
|
waterfurnace==1.1.0
|
||||||
|
|
||||||
# homeassistant.components.weatherflow_cloud
|
# homeassistant.components.weatherflow_cloud
|
||||||
weatherflow4py==0.2.13
|
weatherflow4py==0.2.17
|
||||||
|
|
||||||
# homeassistant.components.webmin
|
# homeassistant.components.webmin
|
||||||
webmin-xmlrpc==0.0.2
|
webmin-xmlrpc==0.0.2
|
||||||
|
@ -2185,7 +2185,7 @@ wallbox==0.6.0
|
|||||||
watchdog==2.3.1
|
watchdog==2.3.1
|
||||||
|
|
||||||
# homeassistant.components.weatherflow_cloud
|
# homeassistant.components.weatherflow_cloud
|
||||||
weatherflow4py==0.2.13
|
weatherflow4py==0.2.17
|
||||||
|
|
||||||
# homeassistant.components.webmin
|
# homeassistant.components.webmin
|
||||||
webmin-xmlrpc==0.0.2
|
webmin-xmlrpc==0.0.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user