Skip to content

Commit

Permalink
Don't verify ssl certificates for ssdp/upnp devices (#73647)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenLooman authored and frenck committed Jun 22, 2022
1 parent 65c1d48 commit 9e4ee0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/ssdp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ async def async_scan_broadcast(self, *_: Any) -> None:

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)

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/upnp/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9e4ee0d

Please sign in to comment.