Save bluetooth passive data eagerly at the stop event (#113648)
parent
6df3e9d7c0
commit
1f9c8694a8
|
@ -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,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue