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

Fix blocking call to load_default_certs in config flow #251

Open
loopj opened this issue Jan 9, 2025 · 0 comments
Open

Fix blocking call to load_default_certs in config flow #251

loopj opened this issue Jan 9, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@loopj
Copy link
Owner

loopj commented Jan 9, 2025

Describe the issue

2025-01-08 18:15:43.216 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to load_default_certs with args (<ssl.SSLContext object at 0x126cd5880>, <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 'vantage' at custom_components/vantage/config_flow.py, line 85: self.controller = await get_controller_details(discovery_info.host) (offender: /opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/ssl.py, line 722: context.load_default_certs(purpose)), please create a bug report at https://github.com/loopj/home-assistant-vantage/issues
For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#load_default_certs
Traceback (most recent call last):
  File "/Users/james/src/home-assistant-vantage/.venv/bin/hass", line 8, in <module>
    sys.exit(main())
  File "/Users/james/src/home-assistant-vantage/.venv/lib/python3.13/site-packages/homeassistant/__main__.py", line 213, in main
    exit_code = runner.run(runtime_conf)
  File "/Users/james/src/home-assistant-vantage/.venv/lib/python3.13/site-packages/homeassistant/runner.py", line 154, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/asyncio/base_events.py", line 707, in run_until_complete
    self.run_forever()
  File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/asyncio/base_events.py", line 678, in run_forever
    self._run_once()
  File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/asyncio/base_events.py", line 2025, in _run_once
    handle._run()
  File "/opt/homebrew/Cellar/[email protected]/3.13.1/Frameworks/Python.framework/Versions/3.13/lib/python3.13/asyncio/events.py", line 89, in _run
    self._context.run(self._callback, *self._args)
  File "/Users/james/src/home-assistant-vantage/.venv/lib/python3.13/site-packages/homeassistant/util/async_.py", line 112, in sem_task
    return await task
  File "/Users/james/src/home-assistant-vantage/.venv/lib/python3.13/site-packages/homeassistant/config_entries.py", line 1315, in async_init
    flow, result = await self._async_init(flow_id, handler, context, data)
  File "/Users/james/src/home-assistant-vantage/.venv/lib/python3.13/site-packages/homeassistant/config_entries.py", line 1350, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data)
  File "/Users/james/src/home-assistant-vantage/.venv/lib/python3.13/site-packages/homeassistant/data_entry_flow.py", line 517, in _async_handle_step
    result: _FlowResultT = await getattr(flow, method)(user_input)
  File "/Users/james/src/home-assistant-vantage/custom_components/vantage/config_flow.py", line 85, in async_step_zeroconf
    self.controller = await get_controller_details(discovery_info.host)
@loopj loopj added the bug Something isn't working label Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant