CoordinatorEntity to call super added_to_hass (#39416)

This commit is contained in:
Paulus Schoutsen authored and GitHub committed 2020-08-30 08:42:33 -05:00
1 parent 3d1ff5b8d0
commit 5a7f1d62c1
1 file changed
+1
@@ -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)
)