|
发表于 2024-4-27 19:10:42
|
显示全部楼层
报错所有的都是未知
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:575
Integration: 传感器 (documentation, issues)
First occurred: 17:40:26 (1 occurrences)
Last logged: 17:40:26
sgcc2024: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 575, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 959, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 517, in async_update
await self.coordinator.async_request_refresh()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 250, in async_request_refresh
await self._debounced_refresh.async_call()
File "/usr/src/homeassistant/homeassistant/helpers/debounce.py", line 93, in async_call
await task
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 276, in async_refresh
await self._async_refresh(log_failures=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 399, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 182, in async_update_listeners
update_callback()
File "/config/custom_components/sgcc2024/sensor.py", line 211, in _handle_coordinator_update
value = data['accountinfo'][0]['dayNum']
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: 'dayNum' |
|