ksya / ha-nefiteasy

Nefit Easy connection for Home Assistant
74 stars 31 forks source link

Detected blocking call to load_default_certs() in HASS 2024.09.02 #346

Open altserg opened 1 month ago

altserg commented 1 month ago

After the update to HASS Core 2024.09.02, following warning is reported:

2024-09-18 03:16:26.586 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_default_certs with args (<ssl.SSLContext object at 0x7f545f5350>, <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 'nefiteasy' at custom_components/nefiteasy/__init__.py, line 91: self.nefit = NefitCore( (offender: /usr/lib/python3.12/ssl.py, line 713: context.load_default_certs(purpose)), please create a bug report at https://github.com/ksya/ha-nefiteasy/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_default_certs Traceback (most recent call last): File "/usr/local/hass/instance-1/bin/hass", line 8, in <module> sys.exit(main()) File "/usr/local/hass/instance-1/lib/python3.12/site-packages/homeassistant/__main__.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/local/hass/instance-1/lib/python3.12/site-packages/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete self.run_forever() File "/usr/lib/python3.12/asyncio/base_events.py", line 639, in run_forever self._run_once() File "/usr/lib/python3.12/asyncio/base_events.py", line 1985, in _run_once handle._run() File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/hass/instance-1/lib/python3.12/site-packages/homeassistant/setup.py", line 165, in async_setup_component result = await _async_setup_component(hass, domain, config) File "/usr/local/hass/instance-1/lib/python3.12/site-packages/homeassistant/setup.py", line 461, in _async_setup_component await asyncio.gather( File "/usr/local/hass/instance-1/lib/python3.12/site-packages/homeassistant/setup.py", line 463, in <genexpr> create_eager_task( File "/usr/local/hass/instance-1/lib/python3.12/site-packages/homeassistant/util/async_.py", line 45, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/local/hass/instance-1/lib/python3.12/site-packages/homeassistant/config_entries.py", line 752, in async_setup_locked await self.async_setup(hass, integration=integration) File "/usr/local/hass/instance-1/lib/python3.12/site-packages/homeassistant/config_entries.py", line 604, in async_setup result = await component.async_setup_entry(hass, self) File "/home/hass/.homeassistant/custom_components/nefiteasy/__init__.py", line 44, in async_setup_entry client = NefitEasy(hass, credentials) File "/home/hass/.homeassistant/custom_components/nefiteasy/__init__.py", line 91, in __init__ self.nefit = NefitCore(

koenscheltenaar commented 3 weeks ago

I am running into the same issue, with an almost fresh HA install. It blocks HA from starting.

Biarritz1959 commented 2 weeks ago

Same here. My HA is unavailable every morning and needs a restart

Corvus71 commented 1 week ago

yep...me too. until core 2024.11.0 it stopped working completely and now I have this error too