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

This commit is contained in:
J. Nick Koston 2022-04-26 23:15:03 -10:00 committed by GitHub
parent 5345d14d01
commit df8981f7c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)