mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Fix homeassistant_alerts delaying shutdown (#116340)
This commit is contained in:
parent
66538ba34e
commit
c533ca50b1
@ -87,7 +87,9 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
|||||||
if not coordinator.last_update_success:
|
if not coordinator.last_update_success:
|
||||||
return
|
return
|
||||||
|
|
||||||
hass.async_create_task(async_update_alerts(), eager_start=True)
|
hass.async_create_background_task(
|
||||||
|
async_update_alerts(), "homeassistant_alerts update", eager_start=True
|
||||||
|
)
|
||||||
|
|
||||||
coordinator = AlertUpdateCoordinator(hass)
|
coordinator = AlertUpdateCoordinator(hass)
|
||||||
coordinator.async_add_listener(async_schedule_update_alerts)
|
coordinator.async_add_listener(async_schedule_update_alerts)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user