Issue #324 - (re)
This commit is contained in:
@@ -410,7 +410,8 @@ class BaseThermostat(ClimateEntity, RestoreEntity):
|
|||||||
)
|
)
|
||||||
self._window_auto_max_duration = entry_infos.get(CONF_WINDOW_AUTO_MAX_DURATION)
|
self._window_auto_max_duration = entry_infos.get(CONF_WINDOW_AUTO_MAX_DURATION)
|
||||||
self._window_auto_on = (
|
self._window_auto_on = (
|
||||||
self._window_auto_open_threshold is not None
|
self._window_sensor_entity_id is None
|
||||||
|
and self._window_auto_open_threshold is not None
|
||||||
and self._window_auto_open_threshold > 0.0
|
and self._window_auto_open_threshold > 0.0
|
||||||
and self._window_auto_close_threshold is not None
|
and self._window_auto_close_threshold is not None
|
||||||
and self._window_auto_max_duration is not None
|
and self._window_auto_max_duration is not None
|
||||||
@@ -1852,8 +1853,8 @@ class BaseThermostat(ClimateEntity, RestoreEntity):
|
|||||||
slope if slope is not None else 0.0,
|
slope if slope is not None else 0.0,
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.window_bypass_state:
|
if self.window_bypass_state or not self.is_window_auto_enabled:
|
||||||
_LOGGER.info("%s - Window auto event is ignored because bypass is ON", self)
|
_LOGGER.info("%s - Window auto event is ignored because bypass is ON or window auto detection is disabled", self)
|
||||||
return
|
return
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user