mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Migrate legacy device_tracker shutdown to use run_immediately (#113835)
A call_soon is not needed here
This commit is contained in:
parent
b26f0bc488
commit
7b67a486bd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user