Fix AccuWeather async timeout (#38654)

This commit is contained in:
Chris Talkington 2020-08-07 23:50:08 -05:00 committed by GitHub
parent c3e77487da
commit f8570438e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,7 @@ class AccuWeatherDataUpdateCoordinator(DataUpdateCoordinator):
async def _async_update_data(self):
"""Update data via library."""
try:
with timeout(10):
async with timeout(10):
current = await self.accuweather.async_get_current_conditions()
forecast = (
await self.accuweather.async_get_forecast(metric=self.is_metric)