-
-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: init() got an unexpected keyword argument 'model' on deprecated classes on miiocli #1199
Comments
I think this is a regression introduced in #1146. Could you try if |
Thank you. miiocli airhumidifier --ip 192.168.5.91 --token xxx status working fine. |
Great! Let's keep this still open as it's clearly a bug. |
I get below warning: |
As those deprecated classes were removed already in #1343, this issue is not anymore relevant. |
miiocli -d airhumidifiercb1 --ip 192.168.5.91 --token xxx status
Result:
INFO:miio.cli:Debug mode active
Traceback (most recent call last):
File "/usr/local/bin/miiocli", line 10, in
sys.exit(create_cli())
File "/usr/local/lib/python3.7/dist-packages/miio/cli.py", line 63, in create_cli
return cli(auto_envvar_prefix="MIIO")
File "/usr/local/lib/python3.7/dist-packages/miio/click_common.py", line 59, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1656, in invoke
super().invoke(ctx)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/miio/click_common.py", line 270, in group_callback
ctx.obj = self.device_class(*args, **kwargs)
TypeError: init() got an unexpected keyword argument 'model'
Name: python-miio
Version: 0.5.9
The text was updated successfully, but these errors were encountered: