Skip to content

Commit

Permalink
fix: threadsafe update_ha_state, references #184 (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
geertmeersman authored Jul 26, 2024
2 parents 001cac3 + 83822dc commit bbdb758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/robonect/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async def async_send_command(
def update_ha_state(self):
"""Update HA state."""
self.last_synced = datetime.now()
self.async_write_ha_state()
self.schedule_update_ha_state()


class RobonectCoordinatorEntity(
Expand Down

0 comments on commit bbdb758

Please sign in to comment.