Skip to content

Commit

Permalink
Update pysonos to 0.0.14 (#24185)
Browse files Browse the repository at this point in the history
  • Loading branch information
amelchio authored and Danielhiversen committed May 30, 2019
1 parent 50db622 commit b6bb691
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/sonos/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"config_flow": true,
"documentation": "https://www.home-assistant.io/components/sonos",
"requirements": [
"pysonos==0.0.12"
"pysonos==0.0.14"
],
"dependencies": [],
"codeowners": [
Expand Down
4 changes: 3 additions & 1 deletion homeassistant/components/sonos/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,9 @@ def _set_basic_information(self):

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."""
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ pysmartthings==0.6.8
pysnmp==4.4.9

# homeassistant.components.sonos
pysonos==0.0.12
pysonos==0.0.14

# homeassistant.components.spc
pyspcwebgw==0.4.0
Expand Down
2 changes: 1 addition & 1 deletion requirements_test_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ pysmartapp==0.3.2
pysmartthings==0.6.8

# homeassistant.components.sonos
pysonos==0.0.12
pysonos==0.0.14

# homeassistant.components.spc
pyspcwebgw==0.4.0
Expand Down

0 comments on commit b6bb691

Please sign in to comment.