Create config entry async_on_unload tasks eagerly (#113626)
This commit is contained in:
parent
91fa612301
commit
6a6f3d46a9
3 changed files with 3 additions and 2 deletions
|
@ -857,7 +857,7 @@ class ConfigEntry:
|
|||
if self._on_unload is not None:
|
||||
while self._on_unload:
|
||||
if job := self._on_unload.pop()():
|
||||
self.async_create_task(hass, job)
|
||||
self.async_create_task(hass, job, eager_start=True)
|
||||
|
||||
if not self._tasks and not self._background_tasks:
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue