mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Fix lookin failing to setup during firmware updates (#61305)
This commit is contained in:
parent
9ffa3b21f6
commit
4933189ad9
@ -1,6 +1,7 @@
|
|||||||
"""The lookin integration."""
|
"""The lookin integration."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import asyncio
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
@ -37,7 +38,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
try:
|
try:
|
||||||
lookin_device = await lookin_protocol.get_info()
|
lookin_device = await lookin_protocol.get_info()
|
||||||
devices = await lookin_protocol.get_devices()
|
devices = await lookin_protocol.get_devices()
|
||||||
except aiohttp.ClientError as ex:
|
except (asyncio.TimeoutError, aiohttp.ClientError) as ex:
|
||||||
raise ConfigEntryNotReady from ex
|
raise ConfigEntryNotReady from ex
|
||||||
|
|
||||||
meteo_coordinator: DataUpdateCoordinator = DataUpdateCoordinator(
|
meteo_coordinator: DataUpdateCoordinator = DataUpdateCoordinator(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user