Cleanup websession with new aiohttp ssl (#2861)

This commit is contained in:
Pascal Vizeli
2021-05-14 10:07:00 +02:00
committed by GitHub
parent 1ef46424ea
commit a5ed68b641
7 changed files with 10 additions and 27 deletions

View File

@@ -112,9 +112,7 @@ class APIProxy(CoreSysAttributes):
url = f"{self.sys_homeassistant.api_url}/api/websocket"
try:
client = await self.sys_websession_ssl.ws_connect(
url, heartbeat=30, verify_ssl=False
)
client = await self.sys_websession.ws_connect(url, heartbeat=30, ssl=False)
# Handle authentication
data = await client.receive_json()