Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swingerman/issue56 #61

Merged
merged 3 commits into from
Jul 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion custom_components/dual_smart_thermostat/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,9 @@ async def _async_opening_changed(self, event):
break

# schdule the closing of the opening
if opening_timeout is not None and new_state.state == STATE_OPEN:
if opening_timeout is not None and (
new_state.state == STATE_OPEN or new_state.state == STATE_ON
):
_LOGGER.debug(
"Scheduling state open of opening %s in %s",
opening_entity,
Expand Down Expand Up @@ -1013,6 +1015,11 @@ def _is_opening_open(self):
opening_entity,
STATE_OPEN,
opening[ATTR_TIMEOUT],
) or condition.state(
self.hass,
opening_entity,
STATE_ON,
opening[ATTR_TIMEOUT],
):
_is_open = True
_LOGGER.debug(
Expand Down