diff --git a/custom_components/versatile_thermostat/feature_window_manager.py b/custom_components/versatile_thermostat/feature_window_manager.py index 6d19cc1..de96b38 100644 --- a/custom_components/versatile_thermostat/feature_window_manager.py +++ b/custom_components/versatile_thermostat/feature_window_manager.py @@ -508,10 +508,10 @@ class FeatureWindowManager(BaseFeatureManager): @property def is_window_detected(self) -> bool: - """Return true if the presence is configured and presence sensor is OFF""" + """Return true if the window is configured and open and bypass is not ON""" return self._is_configured and ( self._window_state == STATE_ON or self._window_auto_state == STATE_ON - ) + ) and not self._is_window_bypass @property def window_sensor_entity_id(self) -> bool: