mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
aiohttp.ClientSession gets proxy information from HTTP_PROXY/HTTPS_PROXY (#16874)
This commit is contained in:
parent
6490ec87f3
commit
672fc61bb2
@ -56,6 +56,7 @@ def async_create_clientsession(hass, verify_ssl=True, auto_cleanup=True,
|
|||||||
clientsession = aiohttp.ClientSession(
|
clientsession = aiohttp.ClientSession(
|
||||||
loop=hass.loop,
|
loop=hass.loop,
|
||||||
connector=connector,
|
connector=connector,
|
||||||
|
trust_env=True,
|
||||||
headers={USER_AGENT: SERVER_SOFTWARE},
|
headers={USER_AGENT: SERVER_SOFTWARE},
|
||||||
**kwargs
|
**kwargs
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user