mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Update pysonos to 0.0.14 (#24185)
This commit is contained in:
committed by
Daniel Høyer Iversen
parent
50db622689
commit
b6bb6919e6
@@ -374,7 +374,9 @@ class SonosEntity(MediaPlayerDevice):
|
||||
|
||||
def _set_favorites(self):
|
||||
"""Set available favorites."""
|
||||
self._favorites = self.soco.music_library.get_sonos_favorites()
|
||||
favorites = self.soco.music_library.get_sonos_favorites()
|
||||
# Exclude favorites that are non-playable due to no linked resources
|
||||
self._favorites = [f for f in favorites if f.reference.resources]
|
||||
|
||||
def _radio_artwork(self, url):
|
||||
"""Return the private URL with artwork for a radio stream."""
|
||||
|
||||
Reference in New Issue
Block a user