mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +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:
|
async def async_added_to_hass(self) -> None:
|
||||||
"""When entity is added to hass."""
|
"""When entity is added to hass."""
|
||||||
|
await super().async_added_to_hass()
|
||||||
self.async_on_remove(
|
self.async_on_remove(
|
||||||
self.coordinator.async_add_listener(self.async_write_ha_state)
|
self.coordinator.async_add_listener(self.async_write_ha_state)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user