2018-09-10 21:07:52 DEBUG (Thread-5) [homeassistant.components.xiaomi_aqara] Expecting 1 gateways
2018-09-10 21:07:53 INFO (Thread-5) [homeassistant.components.xiaomi_aqara] Discovering Xiaomi Gateways (Try 1)
2018-09-10 21:07:53 INFO (Thread-5) [xiaomi_gateway] Xiaomi Gateway xxxxxxxxxxxx found at IP 192.168.xx.xx
2018-09-10 21:07:53 INFO (Thread-5) [xiaomi_gateway] Discovering Xiaomi Devices
2018-09-10 21:07:53 DEBUG (Thread-5) [xiaomi_gateway] _send_cmd >> b'{"cmd":"discovery"}'
2018-09-10 21:07:53 ERROR (MainThread) [homeassistant.setup] Error during setup of component xiaomi_aqara
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/setup.py", line 148, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/lib/python3.5/asyncio/futures.py", line 380, in __iter__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.5/asyncio/tasks.py", line 304, in _wakeup
future.result()
File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result
raise self._exception
File "/usr/lib/python3.5/concurrent/futures/thread.py", line 55, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/xiaomi_aqara.py", line 131, in setup
xiaomi.discover_gateways()
File "/srv/homeassistant/lib/python3.5/site-packages/xiaomi_gateway/__init__.py", line 112, in discover_gateways
resp["proto_version"] if "proto_version" in resp else None)
File "/srv/homeassistant/lib/python3.5/site-packages/xiaomi_gateway/__init__.py", line 219, in __init__
if self._discover_devices():
File "/srv/homeassistant/lib/python3.5/site-packages/xiaomi_gateway/__init__.py", line 226, in _discover_devices
else self._send_cmd(cmd, "discovery_rsp")
File "/srv/homeassistant/lib/python3.5/site-packages/xiaomi_gateway/__init__.py", line 313, in _send_cmd
resp = json.loads(data.decode())
File "/usr/lib/python3.5/json/__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.5/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.5/json/decoder.py", line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 1 column 1025 (char 1024)