From 3ea63a6819a236b30f01a6918de957008d8234d7 Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Wed, 20 Nov 2024 06:45:41 +0000 Subject: [PATCH] Fix underlying target is not updated --- .../versatile_thermostat/thermostat_sonoff_trvzb.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/custom_components/versatile_thermostat/thermostat_sonoff_trvzb.py b/custom_components/versatile_thermostat/thermostat_sonoff_trvzb.py index ac54c65..37007fb 100644 --- a/custom_components/versatile_thermostat/thermostat_sonoff_trvzb.py +++ b/custom_components/versatile_thermostat/thermostat_sonoff_trvzb.py @@ -226,6 +226,16 @@ class ThermostatOverSonoffTRVZB(ThermostatOverClimate): async def _send_regulated_temperature(self, force=False): """Sends the regulated temperature to all underlying""" + if self.target_temperature is None: + return + + for under in self._underlyings: + await under.set_temperature( + self.target_temperature, + self._attr_max_temp, + self._attr_min_temp, + ) + self.recalculate() @property