Skip to content

Error retrieving devices info #34

@buitre-buitaker

Description

@buitre-buitaker

I have a Pure Cool Link purifier, TP04. I am able to log in my Dyson account with this script:

from libpurecool.dyson import DysonAccount
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

# Log to Dyson account
# Language is a two characters code (eg: FR)
dyson_account = DysonAccount("XXXXXXXXX@XXXX.XXX","XXXX","ES")
logged = dyson_account.login()

if not logged:
    print('Unable to login to Dyson account')
    exit(1)

# List devices available on the Dyson account
devices = dyson_account.devices()

But it fails retrieving the device info:

Traceback (most recent call last):
  File "dyson.py", line 15, in <module>
    devices = dyson_account.devices()
  File "build/bdist.macosx-10.15-x86_64/egg/libpurecool/dyson.py", line 104, in devices
    
  File "build/bdist.macosx-10.15-x86_64/egg/libpurecool/dyson_pure_cool_link.py", line 70, in __init__
TypeError: super() takes at least 1 argument (0 given)

Any support on this please?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions