From 7a06ce08068f9b400c0d9530ad99509225ffdbb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kan=20=C3=85kerberg?= Date: Thu, 26 Mar 2020 23:53:07 +0100 Subject: [PATCH] 0.1.7.b6 --- custom_components/shelly/block.py | 2 +- custom_components/shelly/device.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/shelly/block.py b/custom_components/shelly/block.py index 9db417d..a4959e1 100644 --- a/custom_components/shelly/block.py +++ b/custom_components/shelly/block.py @@ -62,7 +62,7 @@ def _updated(self, _block): disabled = self.registry_entry and self.registry_entry.disabled_by if self.entity_id is not None and not self._is_removed \ and not disabled: - self.schedule_update_ha_state() + self.schedule_update_ha_state(True) @property def device_state_attributes(self): diff --git a/custom_components/shelly/device.py b/custom_components/shelly/device.py index e6d52cc..1ab8cc0 100644 --- a/custom_components/shelly/device.py +++ b/custom_components/shelly/device.py @@ -49,7 +49,7 @@ def _updated(self, _block): """Receive events when the switch state changed (by mobile, switch etc)""" if self.entity_id is not None and not self._is_removed: - self.schedule_update_ha_state() + self.schedule_update_ha_state(True) if self._dev.info_values is not None: device_sensors = self.instance.device_sensors