This commit is contained in:
Home Assistant Version Control
2026-08-12 19:11:00 +00:00
parent b654759146
commit 2218539a12
76 changed files with 443 additions and 100 deletions
@@ -43,15 +43,8 @@ class FeatureWindowManager(BaseFeatureManager):
unrecorded_attributes = frozenset(
{
"window_sensor_entity_id",
"is_window_configured",
"window_delay_sec",
"window_off_delay_sec",
"window_auto_configured",
"window_auto_open_threshold",
"window_auto_close_threshold",
"window_auto_max_duration",
"window_action",
"window_manager",
}
)
@@ -134,7 +127,8 @@ class FeatureWindowManager(BaseFeatureManager):
# Try to get last window bypass state
old_state = await self._vtherm.async_get_last_state()
self._is_window_bypass = old_state is not None and hasattr(old_state, "attributes") and old_state.attributes.get("is_window_bypass") is True
old_attributes = getattr(old_state, "attributes", None) or {}
self._is_window_bypass = (old_attributes.get("window_manager") or {}).get("is_window_bypass") is True
if self._is_configured:
self.stop_listening()