Ensure lookin retries setup when device is unreachable (#70865)

This commit is contained in:
J. Nick Koston
2022-04-27 11:15:03 +02:00
committed by GitHub
parent 5345d14d01
commit df8981f7c4
+2 -1
View File
@@ -13,6 +13,7 @@ from aiolookin import (
LookInHttpProtocol,
LookinUDPSubscriptions,
MeteoSensor,
NoUsableService,
Remote,
start_lookin_udp,
)
@@ -94,7 +95,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 (asyncio.TimeoutError, aiohttp.ClientError) as ex:
except (asyncio.TimeoutError, aiohttp.ClientError, NoUsableService) as ex:
raise ConfigEntryNotReady from ex
push_coordinator = LookinPushCoordinator(entry.title)