Do not hold core startup with reolink firmware check task (#120985)

This commit is contained in:
starkillerOG 2024-07-02 12:28:32 +02:00 committed by GitHub
parent b13e78f3a3
commit 4a8436d6bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -133,7 +133,11 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
)
# If camera WAN blocked, firmware check fails and takes long, do not prevent setup
config_entry.async_create_task(hass, firmware_coordinator.async_refresh())
config_entry.async_create_background_task(
hass,
firmware_coordinator.async_refresh(),
f"Reolink firmware check {config_entry.entry_id}",
)
# Fetch initial data so we have data when entities subscribe
try:
await device_coordinator.async_config_entry_first_refresh()