Skip to content

[home-assistant/core] Detected blocking call to load_default_certs with args #756

@pisabell2

Description

@pisabell2

Version of the custom_component

Hilo 2025.11.2

Describe the bug

Je reçois le message ci-dessous au démarrage de HA, et je viens de réaliser qu'il provient de l'intégration Hilo.

Debug log


Enregistreur: homeassistant.util.loop
Source: util/loop.py:77
S'est produit pour la première fois: 7 novembre 2025 à 15:18:24 (2 occurrences)
Dernier enregistrement: 7 novembre 2025 à 15:18:24

Detected blocking call to load_default_certs with args (<ssl.SSLContext object at 0x7fb3bb2960d0>, <Purpose.SERVER_AUTH: _ASN1Object(nid=129, shortname='serverAuth', longname='TLS Web Server Authentication', oid='1.3.6.1.5.5.7.3.1')>) in /usr/local/lib/python3.13/ssl.py, line 722: context.load_default_certs(purpose) inside the event loop; This is causing stability issues. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_default_certs Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 229, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 215, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 289, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.13/asyncio/base_events.py", line 712, in run_until_complete self.run_forever() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 683, in run_forever self._run_once() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2050, in _run_once handle._run() File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.13/site-packages/pyhilo/graphql.py", line 564, in subscribe_to_device_updated async with client as session: File "/usr/local/lib/python3.13/site-packages/gql/client.py", line 813, in __aenter__ return await self.connect_async() File "/usr/local/lib/python3.13/site-packages/gql/client.py", line 788, in connect_async await self.transport.connect() File "/usr/local/lib/python3.13/site-packages/gql/transport/websockets_base.py", line 490, in connect self.websocket = await asyncio.wait_for( File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for return await fut File "/usr/local/lib/python3.13/site-packages/websockets/legacy/client.py", line 652, in __await_impl__ _transport, protocol = await self._create_connection() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1201, in create_connection transport, protocol = await self._create_connection_transport( File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1225, in _create_connection_transport transport = self._make_ssl_transport( File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 83, in _make_ssl_transport ssl_protocol = sslproto.SSLProtocol( File "/usr/local/lib/python3.13/asyncio/sslproto.py", line 295, in __init__ sslcontext = _create_transport_context( File "/usr/local/lib/python3.13/asyncio/sslproto.py", line 55, in _create_transport_context sslcontext = ssl.create_default_context() File "/usr/local/lib/python3.13/ssl.py", line 722, in create_default_context context.load_default_certs(purpose)
Detected blocking call to set_default_verify_paths with args (<ssl.SSLContext object at 0x7fb3bb2960d0>,) in /usr/local/lib/python3.13/ssl.py, line 534: self.set_default_verify_paths() inside the event loop; This is causing stability issues. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#set_default_verify_paths Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/__main__.py", line 229, in <module> sys.exit(main()) File "/usr/src/homeassistant/homeassistant/__main__.py", line 215, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 289, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.13/asyncio/base_events.py", line 712, in run_until_complete self.run_forever() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 683, in run_forever self._run_once() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2050, in _run_once handle._run() File "/usr/local/lib/python3.13/asyncio/events.py", line 89, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.13/site-packages/pyhilo/graphql.py", line 564, in subscribe_to_device_updated async with client as session: File "/usr/local/lib/python3.13/site-packages/gql/client.py", line 813, in __aenter__ return await self.connect_async() File "/usr/local/lib/python3.13/site-packages/gql/client.py", line 788, in connect_async await self.transport.connect() File "/usr/local/lib/python3.13/site-packages/gql/transport/websockets_base.py", line 490, in connect self.websocket = await asyncio.wait_for( File "/usr/local/lib/python3.13/asyncio/tasks.py", line 507, in wait_for return await fut File "/usr/local/lib/python3.13/site-packages/websockets/legacy/client.py", line 652, in __await_impl__ _transport, protocol = await self._create_connection() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1201, in create_connection transport, protocol = await self._create_connection_transport( File "/usr/local/lib/python3.13/asyncio/base_events.py", line 1225, in _create_connection_transport transport = self._make_ssl_transport( File "/usr/local/lib/python3.13/asyncio/selector_events.py", line 83, in _make_ssl_transport ssl_protocol = sslproto.SSLProtocol( File "/usr/local/lib/python3.13/asyncio/sslproto.py", line 295, in __init__ sslcontext = _create_transport_context( File "/usr/local/lib/python3.13/asyncio/sslproto.py", line 55, in _create_transport_context sslcontext = ssl.create_default_context() File "/usr/local/lib/python3.13/ssl.py", line 722, in create_default_context context.load_default_certs(purpose) File "/usr/src/homeassistant/homeassistant/util/loop.py", line 201, in protected_loop_func return func(*args, **kwargs) File "/usr/local/lib/python3.13/ssl.py", line 534, in load_default_certs self.set_default_verify_paths()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions