Don't verify ssl certificates for ssdp/upnp devices (#73647)

pull/73821/head
Steven Looman 2022-06-17 18:26:25 +02:00 committed by Franck Nijhof
parent 65c1d4812a
commit 9e4ee0d36d
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)