mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Disable always responding to all SSDP M-SEARCH requests with the root device (#100224)
This commit is contained in:
parent
8aa689ebae
commit
bbcae19d0e
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user