From bbcae19d0e99102b7f5b582c96c966ed71994e65 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 12 Sep 2023 17:15:13 -0500 Subject: [PATCH] Disable always responding to all SSDP M-SEARCH requests with the root device (#100224) --- homeassistant/components/ssdp/__init__.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/homeassistant/components/ssdp/__init__.py b/homeassistant/components/ssdp/__init__.py index aaffc5a157a..ded663af897 100644 --- a/homeassistant/components/ssdp/__init__.py +++ b/homeassistant/components/ssdp/__init__.py @@ -23,13 +23,7 @@ from async_upnp_client.const import ( SsdpSource, ) from async_upnp_client.description_cache import DescriptionCache -from async_upnp_client.server import ( - SSDP_SEARCH_RESPONDER_OPTION_ALWAYS_REPLY_WITH_ROOT_DEVICE, - SSDP_SEARCH_RESPONDER_OPTIONS, - UpnpServer, - UpnpServerDevice, - UpnpServerService, -) +from async_upnp_client.server import UpnpServer, UpnpServerDevice, UpnpServerService from async_upnp_client.ssdp import ( SSDP_PORT, determine_source_target, @@ -796,11 +790,6 @@ class Server: http_port=http_port, server_device=HassUpnpServiceDevice, boot_id=boot_id, - options={ - SSDP_SEARCH_RESPONDER_OPTIONS: { - SSDP_SEARCH_RESPONDER_OPTION_ALWAYS_REPLY_WITH_ROOT_DEVICE: True - } - }, ) ) results = await asyncio.gather(