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: fix api proxy cert blocking the event loop #1030

Merged
merged 3 commits into from
Aug 11, 2024

Conversation

bdraco
Copy link
Contributor

@bdraco bdraco commented Aug 10, 2024

load_verify_locations should run in the executor

related issue #1029

bdraco added 2 commits August 10, 2024 10:35
load_verify_locations should run in the executor
load_verify_locations should run in the executor
@bdraco bdraco changed the title Fix loading the api proxy cert blocking the event loop fix: loading the api proxy cert blocking the event loop Aug 10, 2024
@@ -181,7 +184,6 @@ async def async_setup_entry(hass, config_entry):
polling_policy=config_entry.options.get(
CONF_POLLING_POLICY, DEFAULT_POLLING_POLICY
),
api_proxy_cert=config.get(CONF_API_PROXY_CERT),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No point in passing this if we already loaded it and we pass the AsyncClient

@bdraco bdraco marked this pull request as ready for review August 10, 2024 16:23
@alandtse alandtse changed the title fix: loading the api proxy cert blocking the event loop fix: fix api proxy cert blocking the event loop Aug 11, 2024
@alandtse alandtse merged commit 74f2986 into alandtse:dev Aug 11, 2024
5 checks passed
@bdraco bdraco deleted the api_proxy_cert branch August 11, 2024 00:17
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

Successfully merging this pull request may close these issues.

2 participants