Colorfulclouds-weather icon indicating copy to clipboard operation
Colorfulclouds-weather copied to clipboard

KeyError: 'nearest'

Open yandong31 opened this issue 4 years ago • 3 comments

Logger: homeassistant Source: custom_components/colorfulclouds/sensor.py:181 First occurred: 下午7:32:20 (1 occurrences) Last logged: 下午7:32:20

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 119, in _handle_refresh_interval await self.async_refresh() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 193, in async_refresh update_callback() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 323, in _async_write_ha_state attr.update(self.device_state_attributes or {}) File "/config/custom_components/colorfulclouds/sensor.py", line 181, in device_state_attributes self._attrs["nearest_intensity"] = self.coordinator.data["result"]["realtime"]["precipitation"]["nearest"]["intensity"] KeyError: 'nearest'

yandong31 avatar Nov 21 '20 11:11 yandong31

I am having the same issue, is there a fix for this? Thanks!

mingjing99 avatar Feb 12 '21 15:02 mingjing99

I am also having the same issue, is there a fix for this? Thanks!

water3033 avatar Jan 15 '22 12:01 water3033

Same problem.

OliverYN avatar Mar 28 '22 01:03 OliverYN