mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Fix issue 5728: Emulated Hue UPnP crashes on special characters. (#9453)
This commit is contained in:
parent
e2866a1339
commit
258ad8fc16
@ -136,7 +136,7 @@ USN: uuid:Socket-1_0-221438K0100073::urn:schemas-upnp-org:device:basic:1
|
||||
# because the data object has not been initialized
|
||||
continue
|
||||
|
||||
if "M-SEARCH" in data.decode('utf-8'):
|
||||
if "M-SEARCH" in data.decode('utf-8', errors='ignore'):
|
||||
# SSDP M-SEARCH method received, respond to it with our info
|
||||
resp_socket = socket.socket(
|
||||
socket.AF_INET, socket.SOCK_DGRAM)
|
||||
|
Loading…
x
Reference in New Issue
Block a user