Skip to content

Commit

Permalink
Fix underlying target is not updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Marc Collin committed Nov 20, 2024
1 parent 592b2ca commit f0a85c1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions custom_components/versatile_thermostat/thermostat_sonoff_trvzb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f0a85c1

Please sign in to comment.