diff --git a/homeassistant/config_entries.py b/homeassistant/config_entries.py index a52b869b8300dd..7b8401ec8b5aeb 100644 --- a/homeassistant/config_entries.py +++ b/homeassistant/config_entries.py @@ -694,7 +694,7 @@ async def _async_process_on_unload(self, hass: HomeAssistant) -> None: if self._on_unload is not None: while self._on_unload: if job := self._on_unload.pop()(): - self._tasks.add(hass.async_create_task(job)) + self.async_create_task(hass, job) if not self._tasks and not self._background_tasks: return