|
发表于 2022-12-7 23:31:55
|
显示全部楼层
Logger: homeassistant.components.weather
Source: custom_components/heweather_forecast/weather.py:143
Integration: Weather (documentation, issues)
First occurred: 23:12:54 (2 occurrences)
Last logged: 23:12:54
Error adding entities for domain weather with platform heweather_forecast
Error while setting up heweather_forecast platform for weather
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 692, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 789, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 545, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 583, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 551, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/weather/__init__.py", line 832, in state
return self.condition
File "/config/custom_components/heweather_forecast/weather.py", line 143, in condition
return [k for k, v in CONDITION_CLASSES.items() if
IndexError: list index out of range
localweather不可用,显示集成“heweather_forecast”不再提供此实体。如果实体不再使用,可以在“设置”中删除它。但是sensor那些实体都可以看到信息,和风控制台也能看到请求,不知道是啥问题。 |
|