mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Add run_immediately to the trace stop listener (#113922)
This commit is contained in:
parent
7758f41c5a
commit
0b0d3a2091
@ -68,7 +68,9 @@ async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
|
||||
_LOGGER.error("Error storing traces", exc_info=exc)
|
||||
|
||||
# Store traces when stopping hass
|
||||
hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, _async_store_traces_at_stop)
|
||||
hass.bus.async_listen_once(
|
||||
EVENT_HOMEASSISTANT_STOP, _async_store_traces_at_stop, run_immediately=True
|
||||
)
|
||||
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user