home-assistant/core

Detected blocking call to load_verify_locations in Govee

Opened this issue · 1 comments

The problem

Getting a warning message in the system logs:

Detected blocking call to load_verify_locations with args (<ssl.SSLContext object at 0x7f501a4f50>, '/usr/local/lib/python3.12/site-packages/certifi/cacert.pem', None, None) in /usr/local/lib/python3.12/ssl.py, line 708: context.load_verify_locations(cafile, capath, cadata) 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_verify_locations 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 223, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.12/site-packages/govee_led_wez/govee.py", line 717, in _http_poller await self.query_http_devices() File "/usr/local/lib/python3.12/site-packages/govee_led_wez/govee.py", line 239, in query_http_devices devices = await http_get_devices(self.api_key) File "/usr/local/lib/python3.12/site-packages/govee_led_wez/http.py", line 37, in http_get_devices ssl_context = ssl.create_default_context(cafile=certifi.where()) File "/usr/local/lib/python3.12/ssl.py", line 708, in create_default_context context.load_verify_locations(cafile, capath, cadata)

What version of Home Assistant Core has the issue?

Core-2024.9.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

util/loop.py:77

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response