mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
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
This commit is contained in:
parent
fbc1c41673
commit
4c36ffd0ef
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user