Skip to content

Commit

Permalink
Updated venstar set_points to return status
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Rodgers committed Oct 16, 2023
1 parent 5b77e9e commit a68cf44
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,13 @@ def _set_points(self, points):
if response.status_code != 200:
raise Exception(
"Invalid response from thermostat, check config, received status code: {}, response: {}".format(response.status_code, response.text))
else:
return {"data": points, "result": "SUCCESS"}



def _set_point(self, point_name, value):
self._set_points({point_name: value})
return self._set_points({"data": {point_name: value}})


def get_point(self, point_name):
Expand Down

0 comments on commit a68cf44

Please sign in to comment.