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:
Teemu R 2018-03-16 12:14:21 +01:00 committed by GitHub
parent f6ae2d338d
commit 78144bc6de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,7 +154,7 @@ class SongpalDevice(MediaPlayerDevice):
_LOGGER.warning("Got %s volume controls, using the first one",
volumes)
volume = volumes.pop()
volume = volumes[0]
_LOGGER.debug("Current volume: %s", volume)
self._volume_max = volume.maxVolume