- 积分
- 368
- 金钱
- 308
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 368
- 金钱
- 308
- HASS币
- 0
|
发表于 2019-11-30 20:02:12
|
显示全部楼层
2019-11-30 19:08:23 ERROR (MainThread) [homeassistant.components.weather] Error while setting up platform hf_weather
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, 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 86, in async_setup_platform
yield from data.async_update(dt_util.now())
File "/config/custom_components/hf_weather/weather.py", line 383, in async_update
self._temperature = float(all_result["now"]["tmp"])
KeyError: 'now'
大神们帮忙看看怎么解决
|
|