Compare commits

..

1 Commits

Author SHA1 Message Date
Jean-Marc Collin
f0a85c10ff Fix underlying target is not updated 2024-11-20 06:45:41 +00:00

View File

@@ -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