|
发表于 2019-1-20 20:27:34
|
显示全部楼层
我跟你一样的报错,但是我在文件配置了xiaomi_aqara。不知道为什么,还有其他报错,在信息那个地方
Error during setup of component xiaomi_aqara
Traceback (most recent call last):
File "/usr/src/app/homeassistant/setup.py", line 148, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/app/homeassistant/components/xiaomi_aqara.py", line 129, in setup
xiaomi.discover_gateways()
File "/usr/local/lib/python3.6/site-packages/xiaomi_gateway/__init__.py", line 107, in discover_gateways
resp["proto_version"] if "proto_version" in resp else None)
File "/usr/local/lib/python3.6/site-packages/xiaomi_gateway/__init__.py", line 209, in __init__
if self._discover_devices():
File "/usr/local/lib/python3.6/site-packages/xiaomi_gateway/__init__.py", line 216, in _discover_devices
else self._send_cmd(cmd, "discovery_rsp")
File "/usr/local/lib/python3.6/site-packages/xiaomi_gateway/__init__.py", line 309, in _send_cmd
resp = json.loads(data.decode())
File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.6/json/decoder.py", line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Unterminated string starting at: line 1 column 1022 (char 1021) |
|