albertogeniola / MerossIot

Async Python library for controlling Meross devices
https://albertogeniola.github.io/MerossIot/
MIT License
463 stars 85 forks source link

TypeError: async_from_user_password() missing 1 required positional argument: 'api_base_url' #347

Closed Worxfr closed 4 months ago

Worxfr commented 4 months ago

I'm using the library for the last 3 year, and follow all update...

First thank alot for your work albertogeniola.

But, I have an error since today, when I try to use the library.

As an example, I'm using the toggle.py example, and now, I have the following error :

pi@domochauffage:~/projects/MerossIot/examples $ python3 toggle.py 
Traceback (most recent call last):
  File "toggle.py", line 49, in <module>
    loop.run_until_complete(main())
  File "/usr/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
    return future.result()
  File "toggle.py", line 13, in main
    http_api_client = await MerossHttpClient.async_from_user_password(email=EMAIL, password=PASSWORD)
TypeError: async_from_user_password() missing 1 required positional argument: 'api_base_url'

And, I had the issue with the version 4.5.9 and also with the version 4.6.0

Thanks for your help