From 4c36ffd0ef0d0f9a8fce1a8522c5832e88ecaa31 Mon Sep 17 00:00:00 2001 From: Anders Melchiorsen Date: Mon, 1 Oct 2018 17:58:04 +0200 Subject: [PATCH] Remove error logging when Sonos shuffle_set is not available (#16921) Error on set_shuffle with UPnP Error 712 received: Play mode not supported from 10.23.2.16 --- homeassistant/components/media_player/sonos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/media_player/sonos.py b/homeassistant/components/media_player/sonos.py index 07567590bdc..718db6300d0 100644 --- a/homeassistant/components/media_player/sonos.py +++ b/homeassistant/components/media_player/sonos.py @@ -69,7 +69,7 @@ ATTR_SPEECH_ENHANCE = 'speech_enhance' ATTR_SONOS_GROUP = 'sonos_group' -UPNP_ERRORS_TO_IGNORE = ['701', '711'] +UPNP_ERRORS_TO_IGNORE = ['701', '711', '712'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Optional(CONF_ADVERTISE_ADDR): cv.string, @@ -831,7 +831,7 @@ class SonosDevice(MediaPlayerDevice): """Set volume level, range 0..1.""" self.soco.volume = str(int(volume * 100)) - @soco_error() + @soco_error(UPNP_ERRORS_TO_IGNORE) @soco_coordinator def set_shuffle(self, shuffle): """Enable/Disable shuffle mode."""