From 1576e9c18970ff7cf612109d0391b8f5715f8e09 Mon Sep 17 00:00:00 2001 From: adi90x Date: Mon, 10 Feb 2025 17:42:06 +0100 Subject: [PATCH] Add bypass to the window open check and correct description (#897) --- .../versatile_thermostat/feature_window_manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: