感谢大佬,还是不行。不知道怎么排查了。
1.固件是4.0.1
2.环境是windows 11(10也用过),python 3.10
3.安装miio后,第一次使用就提示错误:C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Scripts>miiocli device --ip 192.168.0.5 --token 38317165414a7339514133374b347330 info
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Scripts\miiocli.exe\__main__.py", line 4, in <module>
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\miio\cli.py", line 43, in <module>
cli.add_command(device_class.get_device_group()) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\miio\integrations\vacuum\roborock\vacuum.py", line 932, in get_device_group @dg.resultcallback() AttributeError: 'DeviceGroup' object has no attribute 'resultcallback'. Did you mean: 'result_callback'?