From 672fc61bb2b8645a32419328b07948f13afa8fed Mon Sep 17 00:00:00 2001 From: Martin Mois Date: Wed, 26 Sep 2018 08:43:09 +0200 Subject: [PATCH] aiohttp.ClientSession gets proxy information from HTTP_PROXY/HTTPS_PROXY (#16874) --- homeassistant/helpers/aiohttp_client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/helpers/aiohttp_client.py b/homeassistant/helpers/aiohttp_client.py index 53b246c700d..01cc074aa6a 100644 --- a/homeassistant/helpers/aiohttp_client.py +++ b/homeassistant/helpers/aiohttp_client.py @@ -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 )