mirror of
https://github.com/home-assistant/core.git
synced 2025-12-26 05:57:01 +00:00
Fix ssl context being recreated frequently in httpx (#89932)
* Fix ssl context being created every time in httpx * its expensive, only do it once
This commit is contained in:
@@ -271,7 +271,7 @@ def _async_get_connector(
|
||||
return cast(aiohttp.BaseConnector, hass.data[key])
|
||||
|
||||
if verify_ssl:
|
||||
ssl_context: bool | SSLContext = ssl_util.client_context()
|
||||
ssl_context: bool | SSLContext = ssl_util.get_default_context()
|
||||
else:
|
||||
ssl_context = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user