|
发表于 2022-12-16 21:11:55
|
显示全部楼层
这个报错,改了下cli.py,不起作用的
root@raspberrypi:/home/anglee# midea-discover
INFO:msmart.cliiscovering devices with UDP Broadcast, press CTRL-C to quit...
ERROR:msmart.security:aes_decrypt error: ValueError('Padding is incorrect.') - data: 000001800000000063e616534d715753441953830689743757d6b1516f0c4031c7fbfc2a1d0f12534258dfeb43ce3ffddb03727e0dcda80779682dae181425ac
Traceback (most recent call last):
File "/usr/local/bin/midea-discover", line 8, in <module>
sys.exit(discover())
File "/usr/lib/python3/dist-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/msmart/cli.py", line 67, in discover
m_type = m_ssid.split('_')[1]
IndexError: list index out of range
|
|