mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 05:05:09 +02: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