From 3b71245602a1636ddc0fe4e25fb3f7037acb63fb Mon Sep 17 00:00:00 2001 From: labbs1 <67050721+labbs1@users.noreply.github.com> Date: Wed, 29 May 2024 17:13:54 +0200 Subject: [PATCH] Update binary_sensor.py To solve the async problem identified in HA 2024.5.x --- custom_components/flichub/binary_sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/flichub/binary_sensor.py b/custom_components/flichub/binary_sensor.py index 9560612..3a811b7 100644 --- a/custom_components/flichub/binary_sensor.py +++ b/custom_components/flichub/binary_sensor.py @@ -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()