mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Shutdown config entry manager immediately at the stop event (#113632)
This commit is contained in:
parent
796f4deac2
commit
6e3e2d1693
@ -1591,7 +1591,9 @@ class ConfigEntries:
|
|||||||
old_conf_migrate_func=_old_conf_migrator,
|
old_conf_migrate_func=_old_conf_migrator,
|
||||||
)
|
)
|
||||||
|
|
||||||
self.hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, self._async_shutdown)
|
self.hass.bus.async_listen_once(
|
||||||
|
EVENT_HOMEASSISTANT_STOP, self._async_shutdown, run_immediately=True
|
||||||
|
)
|
||||||
|
|
||||||
if config is None:
|
if config is None:
|
||||||
self._entries = ConfigEntryItems(self.hass)
|
self._entries = ConfigEntryItems(self.hass)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user