|
发表于 2024-1-2 09:58:13
|
显示全部楼层
是不是和风嗝屁了?报错了。
Logger: homeassistant.components.weather
Source: custom_components/qweather/weather.py:536
Integration: 天气 (documentation, issues)
First occurred: 00:50:44 (2 occurrences)
Last logged: 09:56:50
Error while setting up qweather platform for weather
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 359, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/qweather/weather.py", line 137, in async_setup_entry
await data.async_update(dt_util.now())
File "/config/custom_components/qweather/weather.py", line 536, in async_update
self._hourly_data = (await response.json() or {}).get("hourly") or self._hourly_data
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1104, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: ', url=URL('https://devapi.qweather.com/v7/grid-weather/48h?location=112.29,24.73&key=c7c0d15037d54da099bd5cc7719538ef')
系统版本Home Assistant 2023.9.2
Supervisor 2023.12.0
Operating System 10.5
前端版本: 20230911.0 - latest |
|