Skip to content
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
15 changes: 9 additions & 6 deletions PyTado/interface/api/hops_tado.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,19 +246,22 @@ def set_open_window(self, zone):
Sets the window in zone to open
Note: This can only be set if an open window was detected in this zone
"""
request = self._create_x_request()
request.command = f"rooms/{zone}/openWindow"
request.action = Action.SET

raise TadoNotSupportedException(
"This method is not currently supported by the Tado X API"
)
return self._http.request(request)

def reset_open_window(self, zone):
"""
Sets the window in zone to closed
"""

raise TadoNotSupportedException(
"This method is not currently supported by the Tado X API"
)
request = self._create_x_request()
request.command = f"rooms/{zone}/openWindow"
request.action = Action.RESET

return self._http.request(request)

def get_device_info(self, device_id, cmd=""):
"""
Expand Down
Loading