mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Ensure lookin retries setup when device is unreachable (#70865)
This commit is contained in:
parent
5345d14d01
commit
df8981f7c4
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user