|
发表于 2024-4-6 00:00:35
|
显示全部楼层
本帖最后由 chenquanhao 于 2024-4-6 00:05 编辑
实体又不可用了,插件版本2023.10.6
Core2024.3.3
Supervisor2024.03.1
日志:
[backcolor=var(--mdc-theme-surface,#fff)][color=var(--mdc-dialog-content-ink-color,rgba(0,0,0,.6))]日志: homeassistant.components.weather
来源: helpers/entity_platform.py:350
集成: 天气 ([color=var(--primary-color)]文档, [color=var(--primary-color)]问题)
首次发生: 2024年4月5日 12:50:35 (1 全部发生)
上次记录: 2024年4月5日 12:50:35
Error while setting up qweather platform for weatherTraceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection.create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/connection.py", line 72, in create_connection for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/socket.py", line 963, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^socket.gaierror: [Errno -3] Try againDuring handling of the above exception, another exception occurred:Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 715, in urlopen httplib_response = self._make_request( ^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 404, in _make_request self._validate_conn(conn) File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 1058, in _validate_conn conn.connect() File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 363, in connect self.sock = conn = self._new_conn() ^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError(urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f5577ecf4d0>: Failed to establish a new connection: [Errno -3] Try againDuring handling of the above exception, another exception occurred:Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 486, in send resp = conn.urlopen( ^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/connectionpool.py", line 799, in urlopen retries = retries.increment( ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/urllib3/util/retry.py", line 592, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause))urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.qweather.com', port=443): Max retries exceeded with url: /weather/maonan-101282007.html (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5577ecf4d0>: Failed to establish a new connection: [Errno -3] Try again'))During handling of the above exception, another exception occurred:Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 350, in _async_setup_platform await asyncio.shield(awaitable) 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 589, in request resp = self.send(prep, **send_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 703, in send r = adapter.send(request, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/requests/adapters.py", line 519, in send raise ConnectionError(e, request=request)requests.exceptions.ConnectionError: HTTPSConnectionPool(host='www.qweather.com', port=443): Max retries exceeded with url: /weather/maonan-101282007.html (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5577ecf4d0>: Failed to establish a new connection: [Errno -3] Try again'))
|
|