mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
CoordinatorEntity to call super added_to_hass (#39416)
This commit is contained in:
parent
3d1ff5b8d0
commit
5a7f1d62c1
@ -211,6 +211,7 @@ class CoordinatorEntity(entity.Entity):
|
||||
|
||||
async def async_added_to_hass(self) -> None:
|
||||
"""When entity is added to hass."""
|
||||
await super().async_added_to_hass()
|
||||
self.async_on_remove(
|
||||
self.coordinator.async_add_listener(self.async_write_ha_state)
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user