Use the first, not the last volume controller when multiple are available on songpal (#13222)
* use the first, not the last volume controller * Do not mutate the list but simply pick the first by index
This commit is contained in:
1 parent
f6ae2d338d
commit
78144bc6de
1 file changed
+1
-1
@@ -154,7 +154,7 @@ class SongpalDevice(MediaPlayerDevice):
|
|||||||
_LOGGER.warning("Got %s volume controls, using the first one",
|
_LOGGER.warning("Got %s volume controls, using the first one",
|
||||||
volumes)
|
volumes)
|
||||||
|
|
||||||
volume = volumes.pop()
|
volume = volumes[0]
|
||||||
_LOGGER.debug("Current volume: %s", volume)
|
_LOGGER.debug("Current volume: %s", volume)
|
||||||
|
|
||||||
self._volume_max = volume.maxVolume
|
self._volume_max = volume.maxVolume
|
||||||
|
|||||||
Reference in new issue
Block a user