From 5244f5731edba16edcb374d5a5fa727f15cc1f91 Mon Sep 17 00:00:00 2001 From: Maciej Bieniek Date: Tue, 25 Apr 2023 20:20:59 +0000 Subject: [PATCH] Do not reload Shelly TRV config entry (#92000) --- homeassistant/components/shelly/coordinator.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/shelly/coordinator.py b/homeassistant/components/shelly/coordinator.py index f2a43accb0e..597ff953656 100644 --- a/homeassistant/components/shelly/coordinator.py +++ b/homeassistant/components/shelly/coordinator.py @@ -195,17 +195,10 @@ class ShellyBlockCoordinator(ShellyCoordinatorBase[BlockDevice]): if block.type == "device": cfg_changed = block.cfgChanged + # Shelly TRV sends information about changing the configuration for no + # reason, reloading the config entry is not needed for it. if self.model == "SHTRV-01": - # Reloading the entry is not needed when the target temperature changes - if "targetTemp" in block.sensor_ids: - if self._last_target_temp != block.targetTemp: - self._last_cfg_changed = None - self._last_target_temp = block.targetTemp - # Reloading the entry is not needed when the mode changes - if "mode" in block.sensor_ids: - if self._last_mode != block.mode: - self._last_cfg_changed = None - self._last_mode = block.mode + self._last_cfg_changed = None # For dual mode bulbs ignore change if it is due to mode/effect change if self.model in DUAL_MODE_LIGHT_MODELS: