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

Read http proxy from env #2258

Closed
wants to merge 1 commit into from
Closed

Read http proxy from env #2258

wants to merge 1 commit into from

Conversation

kamingchan
Copy link

GitHub has been blocked in some country like China. A common way is setup a proxy and set environment variable HTTP_PROXY & HTTPS_PROXY. However aiohttp do not read environment variable by default. It would be useful if hacs provide an option to specify http proxy.

@ludeeus
Copy link
Member

ludeeus commented Nov 4, 2021

Adding this will break HACS.
The functions you have added this to do not support what you have added.
http://dev-docs.home-assistant.io/en/master/api/helpers.html?highlight=async_get_clientsession#homeassistant.helpers.aiohttp_client.async_get_clientsession

This is not something that HACS should add, it has to be done in Home Assistant so it helps every integration that uses the shared session.

@ludeeus ludeeus closed this Nov 4, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Nov 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants