Fix underlying target is not updated

This commit is contained in:
Jean-Marc Collin
2024-11-20 06:45:41 +00:00
parent 386fd780bc
commit 3ea63a6819

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