cyr-ius / cozytouchpy

Cozytouch python implementation
GNU General Public License v3.0
12 stars 7 forks source link

Example fails: TypeError: CozytouchClient.__init__() missing 1 required positional argument: 'server' #15

Open LudovicRousseau opened 1 year ago

LudovicRousseau commented 1 year ago

Just after a "git clone" I do:

$ python3 example.py 
Traceback (most recent call last):
  File "/Users/rousseau/Documents/github/cozytouchpy/example.py", line 21, in <module>
    client = CozytouchClient(username, password)
TypeError: CozytouchClient.__init__() missing 1 required positional argument: 'server'

The example code uses client = CozytouchClient(username, password) without giving any value for the server parameter.

I guess the correct syntax should be:

client = CozytouchClient(username, password, "atlantic_cozytouch")