Disable always responding to all SSDP M-SEARCH requests with the root device (#100224)

This commit is contained in:
J. Nick Koston 2023-09-12 17:15:13 -05:00 committed by GitHub
parent 8aa689ebae
commit bbcae19d0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,13 +23,7 @@ from async_upnp_client.const import (
SsdpSource, SsdpSource,
) )
from async_upnp_client.description_cache import DescriptionCache from async_upnp_client.description_cache import DescriptionCache
from async_upnp_client.server import ( from async_upnp_client.server import UpnpServer, UpnpServerDevice, UpnpServerService
SSDP_SEARCH_RESPONDER_OPTION_ALWAYS_REPLY_WITH_ROOT_DEVICE,
SSDP_SEARCH_RESPONDER_OPTIONS,
UpnpServer,
UpnpServerDevice,
UpnpServerService,
)
from async_upnp_client.ssdp import ( from async_upnp_client.ssdp import (
SSDP_PORT, SSDP_PORT,
determine_source_target, determine_source_target,
@ -796,11 +790,6 @@ class Server:
http_port=http_port, http_port=http_port,
server_device=HassUpnpServiceDevice, server_device=HassUpnpServiceDevice,
boot_id=boot_id, boot_id=boot_id,
options={
SSDP_SEARCH_RESPONDER_OPTIONS: {
SSDP_SEARCH_RESPONDER_OPTION_ALWAYS_REPLY_WITH_ROOT_DEVICE: True
}
},
) )
) )
results = await asyncio.gather( results = await asyncio.gather(