From 9e4ee0d36d11a8b4ad58710cca9d6f3c48eaf1e5 Mon Sep 17 00:00:00 2001 From: Steven Looman Date: Fri, 17 Jun 2022 18:26:25 +0200 Subject: [PATCH] Don't verify ssl certificates for ssdp/upnp devices (#73647) --- homeassistant/components/ssdp/__init__.py | 2 +- homeassistant/components/upnp/device.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/ssdp/__init__.py b/homeassistant/components/ssdp/__init__.py index e854472f21f..d221cb162f4 100644 --- a/homeassistant/components/ssdp/__init__.py +++ b/homeassistant/components/ssdp/__init__.py @@ -351,7 +351,7 @@ class Scanner: async def async_start(self) -> None: """Start the scanners.""" - session = async_get_clientsession(self.hass) + session = async_get_clientsession(self.hass, verify_ssl=False) requester = AiohttpSessionRequester(session, True, 10) self._description_cache = DescriptionCache(requester) diff --git a/homeassistant/components/upnp/device.py b/homeassistant/components/upnp/device.py index 334d870939f..3a688b8571d 100644 --- a/homeassistant/components/upnp/device.py +++ b/homeassistant/components/upnp/device.py @@ -48,7 +48,7 @@ async def async_get_mac_address_from_host(hass: HomeAssistant, host: str) -> str async def async_create_device(hass: HomeAssistant, ssdp_location: str) -> Device: """Create UPnP/IGD device.""" - session = async_get_clientsession(hass) + session = async_get_clientsession(hass, verify_ssl=False) requester = AiohttpSessionRequester(session, with_sleep=True, timeout=20) factory = UpnpFactory(requester, disable_state_variable_validation=True)