日志详细信息( ERROR )
Logger: homeassistant.components.weather
Source: custom_components/ha_weather/UBWeatherReader.py:51
Integration: Weather (documentation, issues)
First occurred: 下午11:43:49 (1 occurrences)
Last logged: 下午11:43:49
Error while setting up ha_weather platform for weather
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 184, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/asyncio/coroutines.py", line 124, in coro
res = func(*args, **kw)
File "/config/custom_components/ha_weather/weather.py", line 98, in async_setup_platform
entity = HeFengWeather(hass,name,data)
File "/config/custom_components/ha_weather/weather.py", line 181, in __init__
data.reload()
File "/config/custom_components/ha_weather/weather.py", line 153, in reload
self.caiyun.load()
File "/config/custom_components/ha_weather/caiyun.py", line 732, in load
self._reader.load()
File "/config/custom_components/ha_weather/UBWeatherReader.py", line 51, in load
self._originalJson = self._originalJson[key]
KeyError: 'result'
Error while setting up ha_weather platform for weather
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 184, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/asyncio/coroutines.py", line 124, in coro
res = func(*args, **kw)
File "/config/custom_components/ha_weather/weather.py", line 98, in async_setup_platform
entity = HeFengWeather(hass,name,data)
File "/config/custom_components/ha_weather/weather.py", line 181, in __init__
data.reload()
File "/config/custom_components/ha_weather/weather.py", line 154, in reload
self.hefeng.load(api_type)
File "/config/custom_components/ha_weather/hefeng.py", line 472, in load
self.parse()
File "/config/custom_components/ha_weather/hefeng.py", line 484, in parse
for item in self._hourly_reader.originalJson['hourly']:
KeyError: 'hourly'
Error while setting up ha_weather platform for weather
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 184, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/asyncio/coroutines.py", line 124, in coro
res = func(*args, **kw)
File "/config/custom_components/ha_weather/weather.py", line 97, in async_setup_platform
data = WeatherData(location,hefengkey,hefengfreekey,caiyunkey,'home',free)
File "/config/custom_components/ha_weather/weather.py", line 146, in __init__
self._hefeng = hefeng.HeFengWeather(location,hefengkey,hefengfreekey,save_name_pre=save_name_pre,free=free)
File "/config/custom_components/ha_weather/hefeng.py", line 412, in __init__
self.parse()
File "/config/custom_components/ha_weather/hefeng.py", line 484, in parse
for item in self._hourly_reader.originalJson['hourly']:
KeyError: 'hourly'