FIX save window state if bypass is activated
This commit is contained in:
@@ -1325,8 +1325,7 @@ class BaseThermostat(ClimateEntity, RestoreEntity):
|
|||||||
_LOGGER.debug("%s - Window ByPass is : %s", self, self._window_bypass_state)
|
_LOGGER.debug("%s - Window ByPass is : %s", self, self._window_bypass_state)
|
||||||
if self._window_bypass_state:
|
if self._window_bypass_state:
|
||||||
_LOGGER.info("%s - Window ByPass is activated. Ignore window event", self)
|
_LOGGER.info("%s - Window ByPass is activated. Ignore window event", self)
|
||||||
return
|
else:
|
||||||
|
|
||||||
if self._window_state == STATE_OFF:
|
if self._window_state == STATE_OFF:
|
||||||
_LOGGER.info(
|
_LOGGER.info(
|
||||||
"%s - Window is closed. Restoring hvac_mode '%s'",
|
"%s - Window is closed. Restoring hvac_mode '%s'",
|
||||||
|
|||||||
Reference in New Issue
Block a user