mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix homeassistant_alerts delaying shutdown (#116340)
This commit is contained in:
parent
7a4aa3c40c
commit
ddf58b6905
@ -87,7 +87,9 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
if not coordinator.last_update_success:
|
||||
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.async_add_listener(async_schedule_update_alerts)
|
||||
|
Loading…
x
Reference in New Issue
Block a user