Shutdown config entry manager immediately at the stop event (#113632)

This commit is contained in:
J. Nick Koston
2024-03-16 13:39:31 -10:00
committed by GitHub
parent 796f4deac2
commit 6e3e2d1693

View File

@@ -1591,7 +1591,9 @@ class ConfigEntries:
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:
self._entries = ConfigEntryItems(self.hass)