|
发表于 2020-7-2 09:47:56
|
显示全部楼层
更新后和风用不了
麻烦大佬们看看
日志详细信息( ERROR )
Logger: homeassistant.components.weather
Source: custom_components/hf_weather/weather.py:392
Integration: Weather (documentation, issues)
First occurred: 上午9:44:26 (1 occurrences)
Last logged: 上午9:44:26
Error while setting up hf_weather platform for weather
Traceback (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 107, in async_setup_platform
yield from data.async_update(dt_util.now())
File "/config/custom_components/hf_weather/weather.py", line 431, in async_update
uv = yield from self.async_uv(session, self._uv_url + self._location)
File "/config/custom_components/hf_weather/weather.py", line 392, in async_uv
time = html.xpath(time_rex)[0].text.split(' ')[0]
IndexError: list index out of range |
|