Run entity component shutdown immediately (#113635)
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…
Reference in New Issue