Skip to content

Commit

Permalink
https://github.com/CharlesBlonde/libpurecoollink/pull/35
Browse files Browse the repository at this point in the history
  • Loading branch information
NickBorgers committed Sep 18, 2022
1 parent fe38dba commit f237a83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libpurecoollink/dyson.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def devices(self):
"""Return all devices linked to the account."""
if self._logged:
device_response = requests.get(
"https://{0}/v1/provisioningservice/manifest".format(
"https://{0}/v2/provisioningservice/manifest".format(
DYSON_API_URL), headers=self._headers)
devices = []
for device in device_response.json():
Expand Down
2 changes: 1 addition & 1 deletion libpurecoollink/dyson_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __init__(self, json_body):
:param json_body: JSON message returned by the HTTPS API
"""
self._active = json_body['Active']
self._active = 'Active' in json_body and json_body['Active']
self._serial = json_body['Serial']
self._name = json_body['Name']
self._version = json_body['Version']
Expand Down

0 comments on commit f237a83

Please sign in to comment.