mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 20:25:07 +02: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user