mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Don't verify ssl certificates for ssdp/upnp devices (#73647)
This commit is contained in:
parent
baa810aabb
commit
2be54de448
@ -351,7 +351,7 @@ class Scanner:
|
|||||||
|
|
||||||
async def async_start(self) -> None:
|
async def async_start(self) -> None:
|
||||||
"""Start the scanners."""
|
"""Start the scanners."""
|
||||||
session = async_get_clientsession(self.hass)
|
session = async_get_clientsession(self.hass, verify_ssl=False)
|
||||||
requester = AiohttpSessionRequester(session, True, 10)
|
requester = AiohttpSessionRequester(session, True, 10)
|
||||||
self._description_cache = DescriptionCache(requester)
|
self._description_cache = DescriptionCache(requester)
|
||||||
|
|
||||||
|
@ -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:
|
async def async_create_device(hass: HomeAssistant, ssdp_location: str) -> Device:
|
||||||
"""Create UPnP/IGD 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)
|
requester = AiohttpSessionRequester(session, with_sleep=True, timeout=20)
|
||||||
|
|
||||||
factory = UpnpFactory(requester, disable_state_variable_validation=True)
|
factory = UpnpFactory(requester, disable_state_variable_validation=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user