Fix lookin failing to setup during firmware updates (#61305)

pull/61312/head
J. Nick Koston 2021-12-08 20:21:11 -10:00 committed by GitHub
parent 9ffa3b21f6
commit 4933189ad9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
"""The lookin integration."""
from __future__ import annotations
import asyncio
from datetime import timedelta
import logging
@ -37,7 +38,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
try:
lookin_device = await lookin_protocol.get_info()
devices = await lookin_protocol.get_devices()
except aiohttp.ClientError as ex:
except (asyncio.TimeoutError, aiohttp.ClientError) as ex:
raise ConfigEntryNotReady from ex
meteo_coordinator: DataUpdateCoordinator = DataUpdateCoordinator(