mirror of
https://github.com/home-assistant/core.git
synced 2025-07-11 07:17:12 +00:00
Run device_registry stop listener immediately (#114978)
This commit is contained in:
parent
d25ac06326
commit
00db97a765
@ -1259,7 +1259,9 @@ def async_setup_cleanup(hass: HomeAssistant, dev_reg: DeviceRegistry) -> None:
|
|||||||
"""Cancel debounced cleanup."""
|
"""Cancel debounced cleanup."""
|
||||||
debounced_cleanup.async_cancel()
|
debounced_cleanup.async_cancel()
|
||||||
|
|
||||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, _on_homeassistant_stop)
|
hass.bus.async_listen_once(
|
||||||
|
EVENT_HOMEASSISTANT_STOP, _on_homeassistant_stop, run_immediately=True
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def _normalize_connections(connections: set[tuple[str, str]]) -> set[tuple[str, str]]:
|
def _normalize_connections(connections: set[tuple[str, str]]) -> set[tuple[str, str]]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user