|
发表于 2024-4-16 03:07:10
|
显示全部楼层
很奇怪,这个天气插件突然就不兼容群晖dms 7.2版本的容器了,直接报错了
Logger: homeassistant.components.weather
Source: helpers/entity_platform.py:344
Integration: 天气 (documentation, issues)
First occurred: 02:49:23 (5 occurrences)
Last logged: 03:04:31
Error while setting up qweather platform for weather
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 344, 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 572, in async_update
hourly_summary = await self._hass.async_add_executor_job(self.get_forecast_minutely, self._fxlink)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/qweather/weather.py", line 484, in get_forecast_minutely
response = request('GET', url, headers=header)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 575, in request
prep = self.prepare_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 486, in prepare_request
p.prepare(
File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 368, in prepare
self.prepare_url(url, params)
File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 439, in prepare_url
raise MissingSchema(
requests.exceptions.MissingSchema: Invalid URL 'None': No scheme supplied. Perhaps you meant https://None?
|
|