mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 10:05:26 +01:00
Migrate legacy device_tracker shutdown to use run_immediately (#113835)
A call_soon is not needed here
This commit is contained in:
@@ -271,7 +271,9 @@ async def _async_setup_legacy_integration(
|
||||
"""
|
||||
cancel_update_stale()
|
||||
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, _on_hass_stop)
|
||||
hass.bus.async_listen_once(
|
||||
EVENT_HOMEASSISTANT_STOP, _on_hass_stop, run_immediately=True
|
||||
)
|
||||
|
||||
|
||||
@attr.s
|
||||
|
||||
Reference in New Issue
Block a user