和风天气取值的时候超边界了啊。。。但是看手工返回是好的啊Logger: homeassistant.components.weather
Source: custom_components/hf-weather/weather.py:473
Integration: weather ([color=var(--primary-color)]documentation, [color=var(--primary-color)]issues)
First occurred: 上午11:46:04 (1 occurrences)
Last logged: 上午11:46:04 Error while setting up hf-weather platform for weatherTraceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT) File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for return fut.result() File "/config/custom_components/hf-weather/weather.py", line 106, in async_setup_platform yield from data.async_update(dt_util.now()) File "/config/custom_components/hf-weather/weather.py", line 473, in async_update [forec_cond[6], int(datemsg[6]["tmp"]["max"]), int(datemsg[6]["tmp"]["min"]), datemsg[6]["date"], datemsg[6]["pcpn"],IndexError: list index out of range
configure.yaml里面用的是经纬度不知道会不会有问题?
|