Allow both VOLUME_STEP and VOLUME_SET (#20732)

* Allow both VOLUME_STEP and VOLUME_SET

Seems like it should be possible to support both at the same time.

* Update test to allow VOLUME_SET and VOLUME_STEP
This commit is contained in:
Greg Johnson authored and Paulus Schoutsen committed 2019-02-06 11:16:21 -08:00
1 parent 59393ab085
commit fb1da53568
2 files changed
+3 -3

No files matched your search

@@ -333,8 +333,7 @@ class UniversalMediaPlayer(MediaPlayerDevice):
if any([cmd in self._cmds for cmd in [SERVICE_VOLUME_UP,
SERVICE_VOLUME_DOWN]]):
flags |= SUPPORT_VOLUME_STEP
flags &= ~SUPPORT_VOLUME_SET
elif SERVICE_VOLUME_SET in self._cmds:
if SERVICE_VOLUME_SET in self._cmds:
flags |= SUPPORT_VOLUME_SET
if SERVICE_VOLUME_MUTE in self._cmds and \