mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix bug where RainMachine entity states don't populate on startup (#76412)
This commit is contained in:
parent
e89459453b
commit
9552250f36
@ -437,6 +437,11 @@ class RainMachineEntity(CoordinatorEntity):
|
||||
self.update_from_latest_data()
|
||||
self.async_write_ha_state()
|
||||
|
||||
async def async_added_to_hass(self) -> None:
|
||||
"""When entity is added to hass."""
|
||||
await super().async_added_to_hass()
|
||||
self.update_from_latest_data()
|
||||
|
||||
@callback
|
||||
def update_from_latest_data(self) -> None:
|
||||
"""Update the state."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user