Do not block on reolink firmware check fail (#88797)

Do not block on firmware check fail
This commit is contained in:
starkillerOG 2023-02-26 21:49:24 +01:00 committed by Paulus Schoutsen
parent a7e081f70d
commit e48089e0c9

View File

@ -106,9 +106,10 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
)
# Fetch initial data so we have data when entities subscribe
try:
# If camera WAN blocked, firmware check fails, do not prevent setup
await asyncio.gather(
device_coordinator.async_config_entry_first_refresh(),
firmware_coordinator.async_config_entry_first_refresh(),
firmware_coordinator.async_refresh(),
)
except ConfigEntryNotReady:
await host.stop()