Deprecate calling async_listen and async_listen_once with run_immediately (#115169)
This commit is contained in:
parent
5ef42078a3
commit
ca5ed274cb
67 changed files with 126 additions and 243 deletions
|
@ -120,9 +120,7 @@ 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, run_immediately=True
|
||||
)
|
||||
self.hass.bus.async_listen_once(EVENT_HOMEASSISTANT_STOP, self._async_shutdown)
|
||||
|
||||
def setup(self, config: ConfigType) -> None:
|
||||
"""Set up a full entity component.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue