FIX overpowering ko

This commit is contained in:
Jean-Marc Collin
2023-03-28 10:06:35 +02:00
parent 637367bd65
commit 9b085f1264
4 changed files with 12 additions and 11 deletions

View File

@@ -2201,11 +2201,10 @@ class VersatileThermostat(ClimateEntity, RestoreEntity):
# Check overpowering condition
# Not necessary for switch because each switch is checking at startup
if self.is_over_climate:
overpowering: bool = await self.check_overpowering()
if overpowering:
_LOGGER.debug("%s - End of cycle (overpowering)", self)
return
overpowering: bool = await self.check_overpowering()
if overpowering:
_LOGGER.debug("%s - End of cycle (overpowering)", self)
return
security: bool = await self.check_security()
if security and self._is_over_climate: