- 积分
- 936
- 金钱
- 758
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 936
- 金钱
- 758
- HASS币
- 0
|
发表于 2018-5-11 22:48:17
|
显示全部楼层
Update for fan.phicomma1 fails
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 204, in async_update_ha_state
yield from self.async_device_update()
File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 327, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 319, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/fan/phicomm.py", line 267, in update
data = self._controller.status
File "/config/custom_components/fan/phicomm.py", line 185, in status
if res['data']['cleanerDev']['online'] == '1':
KeyError: 'online' |
|