mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
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:
parent
f6ae2d338d
commit
78144bc6de
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user