- 积分
- 170
- 金钱
- 127
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 170
- 金钱
- 127
- HASS币
- 0
|
发表于 2022-6-17 21:48:57
|
显示全部楼层
依次出现的错误日志如下:这次是彻底没数据了
Logger: custom_components.bj_sgcc_energy.sgcc
Source: custom_components/bj_sgcc_energy/sgcc.py:194
Integration: 北京用电信息查询 (documentation, issues)
First occurred: 21:46:32 (1 occurrences)
Last logged: 21:46:32
get_detail response got error:
---------------------------------------
Logger: custom_components.bj_sgcc_energy
Source: custom_components/bj_sgcc_energy/sgcc.py:199
Integration: 北京用电信息查询 (documentation, issues)
First occurred: 21:46:32 (1 occurrences)
Last logged: 21:46:32
Unexpected error fetching bj_sgcc_energy data: 'year'
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/homeassistant/helpers/update_coordinator.py", line 190, in _async_refresh
self.data = await self._async_update_data()
File "/var/lib/hass/custom_components/bj_sgcc_energy/__init__.py", line 48, in _async_update_data
data = await self._sgcc.async_get_data()
File "/var/lib/hass/custom_components/bj_sgcc_energy/sgcc.py", line 271, in async_get_data
await self.get_monthly_bill(consNo)
File "/var/lib/hass/custom_components/bj_sgcc_energy/sgcc.py", line 199, in get_monthly_bill
cur_year = self._info[consNo]["year"]
KeyError: 'year' |
|