- 积分
- 268
- 金钱
- 210
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 268
- 金钱
- 210
- HASS币
- 0
|
发表于 2022-11-30 12:50:27
|
显示全部楼层
Logger: homeassistant.components.sensor
Source: custom_components/china_southern_power_grid_stat/sensor.py:200
Integration: 传感器 (documentation, issues)
First occurred: 12:45:52 (1 occurrences)
Last logged: 12:45:52
Error while setting up china_southern_power_grid_stat platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/china_southern_power_grid_stat/sensor.py", line 145, in async_setup_entry
await coordinator.async_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 182, in async_refresh
await self._async_refresh(log_failures=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 110, in async_update_listeners
update_callback()
File "/config/custom_components/china_southern_power_grid_stat/sensor.py", line 200, in _handle_coordinator_update
account_data = self._coordinator.data.get(self._account_number)
AttributeError: 'NoneType' object has no attribute 'get'
|
|