aiohttp.ClientSession gets proxy information from HTTP_PROXY/HTTPS_PROXY (#16874)

pull/16863/head^2
Martin Mois 2018-09-26 08:43:09 +02:00 committed by Paulus Schoutsen
parent 6490ec87f3
commit 672fc61bb2
1 changed files with 1 additions and 0 deletions

View File

@ -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
)