aiohttp.ClientSession gets proxy information from HTTP_PROXY/HTTPS_PROXY (#16874)
This commit is contained in:
parent
6490ec87f3
commit
672fc61bb2
1 changed files with 1 additions and 0 deletions
|
@ -56,6 +56,7 @@ def async_create_clientsession(hass, verify_ssl=True, auto_cleanup=True,
|
|||
clientsession = aiohttp.ClientSession(
|
||||
loop=hass.loop,
|
||||
connector=connector,
|
||||
trust_env=True,
|
||||
headers={USER_AGENT: SERVER_SOFTWARE},
|
||||
**kwargs
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue