日志中显示
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'
请教大神如何解决