mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Run entity component shutdown immediately (#113635)
This commit is contained in:
parent
fa68c5633c
commit
91fa612301
@ -120,7 +120,9 @@ class EntityComponent(Generic[_EntityT]):
|
||||
Note: this is only required if the integration never calls
|
||||
`setup` or `async_setup`.
|
||||
"""
|
||||
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
|
||||
)
|
||||
|
||||
def setup(self, config: ConfigType) -> None:
|
||||
"""Set up a full entity component.
|
||||
|
Loading…
x
Reference in New Issue
Block a user