From 258ad8fc1644017649471cd0a3f5c29aec95b94b Mon Sep 17 00:00:00 2001 From: Paul Krischer Date: Sat, 16 Sep 2017 22:21:09 +0200 Subject: [PATCH] Fix issue 5728: Emulated Hue UPnP crashes on special characters. (#9453) --- homeassistant/components/emulated_hue/upnp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/emulated_hue/upnp.py b/homeassistant/components/emulated_hue/upnp.py index f8d41424064..42a258cbf4b 100644 --- a/homeassistant/components/emulated_hue/upnp.py +++ b/homeassistant/components/emulated_hue/upnp.py @@ -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)