Skip to content

Commit f240e2b

Browse files
committed
Default overlay_active to false on SMART_SCHEDULE
1 parent c314e5c commit f240e2b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/tadoasync/tadoasync.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ async def update_zone_data(self, data: ZoneState) -> None: # pylint: disable=to
581581
)
582582
else:
583583
data.current_hvac_mode = CONST_MODE_SMART_SCHEDULE
584+
data.overlay_active = False # Default to false if no overlay
584585

585586
data.connection = (
586587
getattr(data.connection_state, "value", None)

tests/__snapshots__/test_tado.ambr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@
13971397
'open_window_attr': None,
13981398
'open_window_detected': False,
13991399
'overlay': None,
1400-
'overlay_active': True,
1400+
'overlay_active': False,
14011401
'overlay_termination_timestamp': None,
14021402
'overlay_termination_type': None,
14031403
'overlay_type': None,
@@ -1607,7 +1607,7 @@
16071607
'open_window_attr': None,
16081608
'open_window_detected': False,
16091609
'overlay': None,
1610-
'overlay_active': True,
1610+
'overlay_active': False,
16111611
'overlay_termination_timestamp': None,
16121612
'overlay_termination_type': None,
16131613
'overlay_type': None,
@@ -1715,7 +1715,7 @@
17151715
'open_window_attr': None,
17161716
'open_window_detected': False,
17171717
'overlay': None,
1718-
'overlay_active': True,
1718+
'overlay_active': False,
17191719
'overlay_termination_timestamp': None,
17201720
'overlay_termination_type': None,
17211721
'overlay_type': None,
@@ -2498,7 +2498,7 @@
24982498
'open_window_attr': None,
24992499
'open_window_detected': False,
25002500
'overlay': None,
2501-
'overlay_active': True,
2501+
'overlay_active': False,
25022502
'overlay_termination_timestamp': None,
25032503
'overlay_termination_type': None,
25042504
'overlay_type': None,

0 commit comments

Comments
 (0)