FIX circular call on over_climate

This commit is contained in:
Jean-Marc Collin
2023-03-28 09:33:50 +02:00
parent bcc0a32b6a
commit 637367bd65
3 changed files with 8 additions and 2 deletions

View File

@@ -1203,7 +1203,6 @@ class VersatileThermostat(ClimateEntity, RestoreEntity):
await under.set_hvac_mode(hvac_mode)
self._hvac_mode = hvac_mode
await self._async_control_heating(force=True)
# Ensure we update the current operation after changing the mode
self.reset_last_temperature_time()

View File

@@ -178,6 +178,7 @@ class UnderlyingSwitch(UnderlyingEntity):
if hvac_mode == HVACMode.OFF:
if self.is_device_active:
await self.turn_off()
await self._thermostat._async_control_heating(force=True)
return
@property