Sun Dec 02 2018 16:10:20 GMT+0800 (CST)
Error while setting up platform mi_water_purifier
Traceback (most recent call last):
File "/config/custom_components/sensor/mi_water_purifier.py", line 159, in parse_data
status = self._device.send('get_prop', [])
File "/usr/local/lib/python3.6/site-packages/miio/device.py", line 263, in send
self.__id = m.data.value["id"]
TypeError: 'NoneType' object is not subscriptable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/sensor/mi_water_purifier.py", line 34, in setup_platform
waterPurifier = XiaomiWaterPurifier(device, name)
File "/config/custom_components/sensor/mi_water_purifier.py", line 116, in __init__
self.parse_data()
File "/config/custom_components/sensor/mi_water_purifier.py", line 177, in parse_data
except DeviceException:
NameError: name 'DeviceException' is not defined
Sun Dec 02 2018 16:10:20 GMT+0800 (CST)
unable to parse json '{"result":[net],"id":1}': Expecting value: line 1 column 12 (char 11)