Skip to content

存在error错误,提示超出范围bug #8

@plutosherry

Description

@plutosherry

2020-01-06 11:03:43 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved' 'Traceback (most recent call last):' ' File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 408, in _async_add_entity' ' await entity.async_update_ha_state()' 'File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 286, in async_update_ha_state self._async_write_ha_state()' ' File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state state = self.state' ' File "/usr/src/homeassistant/homeassistant/components/weather/__init__.py", line 188, in state return self.condition' ' File "/config/custom_components/hf_weather/weather.py", line 161, in condition return [k for k, v in CONDITION_CLASSES.items() if self._condition in v][0]' 'IndexError: list index out of range'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions