Save bluetooth passive data eagerly at the stop event (#113648)

pull/113621/head^2
J. Nick Koston 2024-03-16 19:02:57 -10:00 committed by GitHub
parent 6df3e9d7c0
commit 1f9c8694a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -272,7 +272,9 @@ async def async_setup(hass: HomeAssistant) -> None:
await _async_save_processor_data(None)
hass.bus.async_listen_once(
EVENT_HOMEASSISTANT_STOP, _async_save_processor_data_at_stop
EVENT_HOMEASSISTANT_STOP,
_async_save_processor_data_at_stop,
run_immediately=True,
)