mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +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",
|
_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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user