diff --git a/custom_components/globalcache_itach/discovery.py b/custom_components/globalcache_itach/discovery.py index 4d63c14..9850625 100644 --- a/custom_components/globalcache_itach/discovery.py +++ b/custom_components/globalcache_itach/discovery.py @@ -157,7 +157,7 @@ async def async_setup(self) -> None: _LOGGER.debug("Global Caché UDP discovery unavailable: %s", err) return self._sock = sock - self._listen_task = self._hass.async_create_task( + self._listen_task = self._hass.async_create_background_task( self._listen_loop(), name="globalcache_itach_discovery" )