From 4a8436d6bcea5fed91bc6632d3f364793015d16e Mon Sep 17 00:00:00 2001 From: starkillerOG Date: Tue, 2 Jul 2024 12:28:32 +0200 Subject: [PATCH] Do not hold core startup with reolink firmware check task (#120985) --- homeassistant/components/reolink/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/reolink/__init__.py b/homeassistant/components/reolink/__init__.py index 150a23dc64e..479976ad078 100644 --- a/homeassistant/components/reolink/__init__.py +++ b/homeassistant/components/reolink/__init__.py @@ -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()