1
0
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:
Anders Melchiorsen
2019-05-30 09:24:38 +02:00
committed by Daniel Høyer Iversen
parent 50db622689
commit b6bb6919e6
4 changed files with 6 additions and 4 deletions

View File

@@ -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."""