FIX exception when no power sensor are configured

Add more explantions on README
This commit is contained in:
Jean-Marc Collin
2023-01-03 17:15:29 +01:00
parent bb7322854e
commit a0486a3f54
5 changed files with 47 additions and 1 deletions

View File

@@ -842,6 +842,10 @@ class VersatileThermostat(ClimateEntity, RestoreEntity):
"""Check the overpowering condition
Turn the preset_mode of the heater to 'power' if power conditions are exceeded
"""
if not self._pmax_on:
return
_LOGGER.debug(
"%s - overpowering check: power=%.3f, max_power=%.3f heater power=%.3f",
self,