mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Fix AccuWeather async timeout (#38654)
This commit is contained in:
parent
c3e77487da
commit
f8570438e9
@ -114,7 +114,7 @@ class AccuWeatherDataUpdateCoordinator(DataUpdateCoordinator):
|
|||||||
async def _async_update_data(self):
|
async def _async_update_data(self):
|
||||||
"""Update data via library."""
|
"""Update data via library."""
|
||||||
try:
|
try:
|
||||||
with timeout(10):
|
async with timeout(10):
|
||||||
current = await self.accuweather.async_get_current_conditions()
|
current = await self.accuweather.async_get_current_conditions()
|
||||||
forecast = (
|
forecast = (
|
||||||
await self.accuweather.async_get_forecast(metric=self.is_metric)
|
await self.accuweather.async_get_forecast(metric=self.is_metric)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user