- 积分
- 766
- 金钱
- 688
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 766
- 金钱
- 688
- HASS币
- 0
|
发表于 2024-6-5 11:38:52
|
显示全部楼层
取消了分钟级别预报以后,HASS里都无法生成实体了,原来的集成需要更新了
报错信息如下:
Error adding entity weather.saturday_home for domain weather with platform colorfulclouds
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 580, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 892, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1359, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1009, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1069, in __async_calculate_state
if state_attributes := self.state_attributes:
^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/colorfulclouds/weather.py", line 238, in state_attributes
data['forecast_minutely'] = self.forecast_minutely
^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/colorfulclouds/weather.py", line 214, in forecast_minutely
return self.coordinator.data['result']['minutely']['description']
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'minutely'
|
|