mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Allow sonos to select album as a source (#9221)
Importing the fix in the PR https://github.com/home-assistant/home-assistant/pull/8258 I noticed that the same error is present also for Spotify album so I have extended the code and tested it. It works fine on my setup
This commit is contained in:
parent
f76436f326
commit
56f9ccb877
@ -897,7 +897,8 @@ class SonosDevice(MediaPlayerDevice):
|
||||
src = fav.pop()
|
||||
self._source_name = src['title']
|
||||
|
||||
if 'object.container.playlistContainer' in src['meta']:
|
||||
if ('object.container.playlistContainer' in src['meta'] or
|
||||
'object.container.album.musicAlbum' in src['meta']):
|
||||
self._replace_queue_with_playlist(src)
|
||||
self._player.play_from_queue(0)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user