- 积分
- 176
- 金钱
- 160
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 176
- 金钱
- 160
- HASS币
- 0
|
发表于 2023-4-6 17:30:03
|
显示全部楼层
Logger: homeassistant.components.sensor
Source: custom_components/heweather_hourlyforecast/sensor.py:164
Integration: 传感器 (documentation, issues)
First occurred: 13:24:11 (1 occurrences)
Last logged: 13:24:11
heweather_hourlyforecast: Error on device update!
Traceback (most recent call last):
File "/srv/ha/lib/python3.10/site-packages/homeassistant/helpers/entity_platform.py", line 503, in _async_add_entity
await entity.async_device_update(warning=False)
File "/srv/ha/lib/python3.10/site-packages/homeassistant/helpers/entity.py", line 729, in async_device_update
await task
File "/usr/local/lib/python3.10/asyncio/coroutines.py", line 124, in coro
res = func(*args, **kw)
File "/home/ha/.homeassistant/custom_components/heweather_hourlyforecast/sensor.py", line 164, in async_update
self._state = self._data.hour_9[1]+' '+self._data.hour_9[2]+'℃ '+self._data.hour_9[4]+' '+ self._data.hour_9[5] + '级'
TypeError: 'NoneType' object is not subscriptable |
|