Skip to content

Commit

Permalink
Change method for updating HA state
Browse files Browse the repository at this point in the history
  • Loading branch information
janvanicek committed Jun 19, 2024
1 parent 595676c commit 29aaec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/roborock/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,5 @@ def _update_from_listener(self, value: Status | Consumable):
else:
self.coordinator.device_info.props.consumable = value
self.coordinator.data = self.coordinator.device_info.props
self.async_write_ha_state()
self.schedule_update_ha_state()

0 comments on commit 29aaec4

Please sign in to comment.