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 @@ def recalculate(self): 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