From f8570438e9e7d27f5e3dd4e732a34ac7b6876cf0 Mon Sep 17 00:00:00 2001 From: Chris Talkington Date: Fri, 7 Aug 2020 23:50:08 -0500 Subject: [PATCH] Fix AccuWeather async timeout (#38654) --- homeassistant/components/accuweather/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/accuweather/__init__.py b/homeassistant/components/accuweather/__init__.py index 3dbb713ab2b..1e1a434a036 100644 --- a/homeassistant/components/accuweather/__init__.py +++ b/homeassistant/components/accuweather/__init__.py @@ -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)