Can't find device in account
bryanshihpeng opened this issue · comments
bryanshihpeng commented
Hi, Thanks for your API.
I Can't find my TP04 in my account which is already registered.
what can i do?
Thanks for your help!
YUMENOSUKE commented
modify dyson.py v1 -> v2
def devices(self):
"""Return all devices linked to the account."""
if self._logged:
device_response = requests.get(
"https://{0}/v2/provisioningservice/manifest".format(
DYSON_API_URL), verify=False, auth=self._auth)
and dyson_device.py
because 'Active' is not found in the response now
def on_connect(client, userdata, flags, return_code):
...
# self._active = json_body['Active']
self._active = True
But in my case, program freezes after connect() or auto_connect().