Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_default_certs with args #219

Open
PaegelowM opened this issue Jan 5, 2025 · 2 comments

Comments

@PaegelowM
Copy link

Hello,

i just saw this as well in the protocoll of HA.

I am using Home-Assistant OS (2025.1.0). This loop is from this custom integration.

Logger: homeassistant.util.loop
Source: util/loop.py:136
Erstmals aufgetreten: 12:37:11 (1 Vorkommnisse)
Zuletzt protokolliert: 12:37:11

Detected blocking call to load_default_certs with args (<ssl.SSLContext object at 0x7f7450337ad0>, <Purpose.SERVER_AUTH: _ASN1Object(nid=129, shortname='serverAuth', longname='TLS Web Server Authentication', oid='1.3.6.1.5.5.7.3.1')>) inside the event loop by custom integration 'freeathome' at custom_components/freeathome/fah/pfreeathome.py, line 220: slixmpp.ClientXMPP.init(self, jid, password, sasl_mech='SCRAM-SHA-1') (offender: /usr/local/lib/python3.13/ssl.py, line 722: context.load_default_certs(purpose)), please report it to the author of the 'freeathome' custom integration For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_default_certs Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 227, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 213, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 154, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.13/asyncio/base_events.py", line 707, in run_until_complete self.run_forever() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 678, in run_forever self._run_once() File "/usr/local/lib/python3.13/asyncio/base_events.py", line 2033, 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/src/homeassistant/homeassistant/config_entries.py", line 788, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 551, in async_setup await self.__async_setup_with_context(hass, integration) File "/usr/src/homeassistant/homeassistant/config_entries.py", line 640, in __async_setup_with_context result = await component.async_setup_entry(hass, self) File "/config/custom_components/freeathome/init.py", line 82, in async_setup_entry await sysap.connect() File "/config/custom_components/freeathome/fah/pfreeathome.py", line 906, in connect self.xmpp = Client(self._jid, self._password, self._host, self._port, fahversion, iterations, salt, self.reconnect) File "/config/custom_components/freeathome/fah/pfreeathome.py", line 220, in init slixmpp.ClientXMPP.init(self, jid, password, sasl_mech='SCRAM-SHA-1')

@domi8671
Copy link

domi8671 commented Jan 5, 2025

I am getting the same log after HA restart, I'm still on 2024.12.5 and latest version of freeathome.

@jheling
Copy link
Owner

jheling commented Feb 1, 2025

The problem originates in Slixmpp. Other Homeassistant integrations have the same warning. https://codeberg.org/poezio/slixmpp/issues/3582 contains a solution, now waiting for a new release of Slixmpp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants