- 积分
- 569
- 金钱
- 479
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 569
- 金钱
- 479
- HASS币
- 0
|
楼主 |
发表于 2021-12-3 14:55:21
|
显示全部楼层
Logger: homeassistant.components.sensor
Source: custom_components/niu/sensor.py:287
Integration: 传感器 (documentation, issues)
First occurred: 14:49:37 (1 occurrences)
Last logged: 14:49:37
Error while setting up niu platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/niu/sensor.py", line 374, in setup_platform
token = get_token(username, password, country)
File "/config/custom_components/niu/sensor.py", line 287, in get_token
return data["data"]["token"]
KeyError: 'token'
|
|