- 积分
- 192
- 金钱
- 144
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 192
- 金钱
- 144
- HASS币
- 0
|
楼主 |
发表于 2017-7-20 16:33:33
|
显示全部楼层
是文件夹名字问题,处理了又出现这个错误2017-07-20 07:05:45 ERROR (MainThread) [homeassistant.setup] Error during setup of component xiaomi
Traceback (most recent call last):
File "/usr/src/app/homeassistant/setup.py", line 190, in _async_setup_component
component.setup, hass, processed_config)
File "/usr/local/lib/python3.6/asyncio/futures.py", line 331, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 244, in _wakeup
future.result()
File "/usr/local/lib/python3.6/asyncio/futures.py", line 244, in result
raise self._exception
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/xiaomi.py", line 77, in setup
PY_XIAOMI_GATEWAY.discover_gateways()
File "/config/custom_components/xiaomi.py", line 167, in discover_gateways
self.gateways[ip_add] = XiaomiGateway(ip_add, port, sid, gateway_key, self._socket)
File "/config/custom_components/xiaomi.py", line 262, in __init__
if self._discover_devices():
File "/config/custom_components/xiaomi.py", line 271, in _discover_devices
self.update_key(resp["token"])
File "/config/custom_components/xiaomi.py", line 387, in update_key
encryptor = AES.new(self.key.encode(), AES.MODE_CBC, IV=init_vector)
File "/usr/local/lib/python3.6/site-packages/Crypto/Cipher/AES.py", line 264, in new
return _create_cipher(sys.modules[__name__], key, mode, *args, **kwargs)
File "/usr/local/lib/python3.6/site-packages/Crypto/Cipher/__init__.py", line 130, in _create_cipher
return modes[mode](factory, **kwargs)
File "/usr/local/lib/python3.6/site-packages/Crypto/Cipher/_mode_cbc.py", line 232, in _create_cbc_cipher
cipher_state = factory._create_base_cipher(kwargs)
File "/usr/local/lib/python3.6/site-packages/Crypto/Cipher/AES.py", line 134, in _create_base_cipher
raise ValueError("Incorrect AES key length (%d bytes)" % len(key))
ValueError: Incorrect AES key length (0 bytes)
|
|