Skip to content

Commit

Permalink
Update binary_sensor.py
Browse files Browse the repository at this point in the history
To solve the async problem identified in HA 2024.5.x
  • Loading branch information
labbs1 authored May 29, 2024
1 parent d41f008 commit 3b71245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/flichub/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,4 @@ def _event_callback(self, event: core.Event):
self._is_on = True
if click_type == 'up':
self._is_on = False
self.async_write_ha_state()
self.schedule_update_ha_state()

0 comments on commit 3b71245

Please sign in to comment.