Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2.0版weather实体无法启动加载 #53

Closed
neckyaan opened this issue Jun 10, 2024 · 1 comment
Closed

V2.0版weather实体无法启动加载 #53

neckyaan opened this issue Jun 10, 2024 · 1 comment

Comments

@neckyaan
Copy link
Contributor

日志如下:
日志记录器: homeassistant
来源: custom_components/colorfulclouds/weather.py:271
集成: colorfulClouds (文档, 问题)
首次出现: 17:58:20 (3 次总计出现)
上次记录: 18:01:33

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 255, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 411, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 165, in async_update_listeners
update_callback()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1000, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1126, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1065, in __async_calculate_state
if extra_state_attributes := self.extra_state_attributes:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/colorfulclouds/weather.py", line 298, in extra_state_attributes
"forecast_minutely": self.forecast_minutely,
^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/colorfulclouds/weather.py", line 271, in forecast_minutely
return self.coordinator.data["result"]["minutely"]["description"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'minutely'

@fineemb
Copy link
Owner

fineemb commented Jun 10, 2024

v2.0.1

@fineemb fineemb closed this as completed Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants