Skip to content

Commit

Permalink
fix(api): Put Zone Order (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
germainlefebvre4 authored Oct 13, 2023
1 parent 3ee9acb commit bbe7a60
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions libtado/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1923,3 +1923,24 @@ def set_heating_system_boiler(self, payload):
"""

return self._api_call('homes/%i/heatingSystem/boiler' % (self.id), data=payload, method='PUT')

def set_zone_order(self, payload, ngsw_bypass=True):
"""
Set zone order
Parameters:
zoneOrder (list): List of zone IDs in the order you want them to appear in the app.
Returns:
No returned value.
Example:
```json
[
{"id": 1},
{"id": 6},
{"id": 12}
]
```
"""
return self._api_call('homes/%i/zoneOrder?ngsw-bypass=%s' % (self.id, ngsw_bypass), data=payload, method='PUT')

0 comments on commit bbe7a60

Please sign in to comment.