mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Fix dead Sonos web interface even more (#12851)
This commit is contained in:
parent
7d8a309017
commit
d63cf94d6d
@ -129,7 +129,9 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||||||
"""Avoid SoCo 0.14 event thread dying from invalid xml."""
|
"""Avoid SoCo 0.14 event thread dying from invalid xml."""
|
||||||
try:
|
try:
|
||||||
return orig_parse_event_xml(xml)
|
return orig_parse_event_xml(xml)
|
||||||
except soco.exceptions.SoCoException:
|
# pylint: disable=broad-except
|
||||||
|
except Exception as ex:
|
||||||
|
_LOGGER.debug("Dodged exception: %s %s", type(ex), str(ex))
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
soco.events.parse_event_xml = safe_parse_event_xml
|
soco.events.parse_event_xml = safe_parse_event_xml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user