CoordinatorEntity to call super added_to_hass (#39416)
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…
Reference in New Issue