Fix bug where RainMachine entity states don't populate on startup (#76412)

This commit is contained in:
Aaron Bach 2022-08-07 13:44:50 -06:00 committed by Paulus Schoutsen
parent 79b371229d
commit ee2acabcbe

View File

@ -437,7 +437,7 @@ class RainMachineEntity(CoordinatorEntity):
self.async_write_ha_state()
async def async_added_to_hass(self) -> None:
"""Handle entity which will be added."""
"""When entity is added to hass."""
await super().async_added_to_hass()
self.update_from_latest_data()