From 18cd55208afa5f5686f0c6b4705950c53a81af0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20Hansl=C3=ADk?= Date: Fri, 24 May 2024 12:52:42 +0200 Subject: [PATCH] Fix warning --- custom_components/jablotron100/jablotron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/jablotron100/jablotron.py b/custom_components/jablotron100/jablotron.py index 45d9aa7..c4e69c4 100644 --- a/custom_components/jablotron100/jablotron.py +++ b/custom_components/jablotron100/jablotron.py @@ -2766,7 +2766,7 @@ async def remove_from_hass(self) -> None: def refresh_state(self) -> None: self._update_attributes() - self.async_write_ha_state() + self.schedule_update_ha_state() def update_state(self, state: StateType) -> None: self._jablotron.entities_states[self._control.id] = state