File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -121,11 +121,8 @@ def create_session(self) -> aiohttp.ClientSession:
121121 """Handles creating an :py:class:`~aiohttp.ClientSession` with the cert information from the plugin config
122122 and the authorization headers for the `REST API <https://developers.home-assistant.io/docs/api/rest>`_.
123123 """
124- if self .config .cert_path is not None :
125- ssl_context = ssl .create_default_context (capath = self .config .cert_path )
126- conn = aiohttp .TCPConnector (ssl_context = ssl_context , verify_ssl = self .config .cert_verify )
127- else :
128- conn = aiohttp .TCPConnector (ssl = False )
124+ ssl_context = ssl .create_default_context (capath = self .config .cert_path )
125+ conn = aiohttp .TCPConnector (ssl_context = ssl_context )
129126
130127 connect_timeout_secs = self .config .connect_timeout .total_seconds ()
131128 return aiohttp .ClientSession (
Original file line number Diff line number Diff line change 1010
1111- Fix for sunrise and sunset with offsets - contributed by [ ekutner] ( https://github.com/ekutner )
1212- Fix for random MQTT disconnects - contributed by [ Xsandor] ( https://github.com/Xsandor )
13+ - Fix for connecting to Home Assistant with https
1314- Fix for persistent namespaces in Python 3.12
1415- Better error handling for receiving huge websocket messages in the Hass plugin
1516
You can’t perform that action at this time.
0 commit comments