|
发表于 2020-7-2 10:43:26
|
显示全部楼层
0.112版本报错
2020-07-02 10:39:24 ERROR (MainThread) [homeassistant.setup] Error during setup of component xiaomi_cooker
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 193, in _async_setup_component
result = await asyncio.wait_for(task, SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/xiaomi_cooker/__init__.py", line 161, in setup
update(utcnow())
File "/config/custom_components/xiaomi_cooker/__init__.py", line 146, in update
state = cooker.status()
File "/usr/local/lib/python3.7/site-packages/miio/cooker.py", line 766, in status
values = self.send("get_prop", ["all"])
File "/usr/local/lib/python3.7/site-packages/miio/device.py", line 147, in send
command, parameters, retry_count, extra_parameters=extra_parameters
File "/usr/local/lib/python3.7/site-packages/miio/miioprotocol.py", line 150, in send
self.send_handshake()
File "/usr/local/lib/python3.7/site-packages/miio/miioprotocol.py", line 62, in send_handshake
header = m.header.value
AttributeError: 'NoneType' object has no attribute 'header' |
|