Use insecure SSL cipher for Reolink aiohttp clientsession (#126687)

pull/126690/head
starkillerOG 2024-09-24 21:50:45 +02:00 committed by GitHub
parent d2d3ab2d98
commit 9a4a66b33f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -30,6 +30,7 @@ from homeassistant.helpers.device_registry import format_mac
from homeassistant.helpers.dispatcher import async_dispatcher_send
from homeassistant.helpers.event import async_call_later
from homeassistant.helpers.network import NoURLAvailableError, get_url
from homeassistant.util.ssl import SSLCipherList
from .const import CONF_USE_HTTPS, DOMAIN
from .exceptions import (
@ -69,7 +70,11 @@ class ReolinkHost:
def get_aiohttp_session() -> aiohttp.ClientSession:
"""Return the HA aiohttp session."""
return async_get_clientsession(hass, verify_ssl=False)
return async_get_clientsession(
hass,
verify_ssl=False,
ssl_cipher=SSLCipherList.INSECURE,
)
self._api = Host(
config[CONF_HOST],