diff --git a/homeassistant/components/sonos/__init__.py b/homeassistant/components/sonos/__init__.py index e9f297e4f07..9c9914b787b 100644 --- a/homeassistant/components/sonos/__init__.py +++ b/homeassistant/components/sonos/__init__.py @@ -4,7 +4,7 @@ from homeassistant.helpers import config_entry_flow DOMAIN = 'sonos' -REQUIREMENTS = ['pysonos==0.0.8'] +REQUIREMENTS = ['pysonos==0.0.9'] async def async_setup(hass, config): diff --git a/homeassistant/components/sonos/manifest.json b/homeassistant/components/sonos/manifest.json index 3fa5ac0354a..79cc7653937 100644 --- a/homeassistant/components/sonos/manifest.json +++ b/homeassistant/components/sonos/manifest.json @@ -3,7 +3,7 @@ "name": "Sonos", "documentation": "https://www.home-assistant.io/components/sonos", "requirements": [ - "pysonos==0.0.8" + "pysonos==0.0.9" ], "dependencies": [], "codeowners": [ diff --git a/homeassistant/components/sonos/media_player.py b/homeassistant/components/sonos/media_player.py index ba7854e4f0d..7c2e5fec843 100644 --- a/homeassistant/components/sonos/media_player.py +++ b/homeassistant/components/sonos/media_player.py @@ -454,18 +454,7 @@ class SonosEntity(MediaPlayerDevice): def _set_favorites(self): """Set available favorites.""" - # SoCo 0.16 raises a generic Exception on invalid xml in favorites. - # Filter those out now so our list is safe to use. - try: - self._favorites = [] - for fav in self.soco.music_library.get_sonos_favorites(): - try: - if fav.reference.get_uri(): - self._favorites.append(fav) - except Exception: # pylint: disable=broad-except - _LOGGER.debug("Ignoring invalid favorite '%s'", fav.title) - except Exception: # pylint: disable=broad-except - _LOGGER.debug("Ignoring invalid favorite list") + self._favorites = self.soco.music_library.get_sonos_favorites() def _radio_artwork(self, url): """Return the private URL with artwork for a radio stream.""" diff --git a/requirements_all.txt b/requirements_all.txt index e46f9dd4019..e61530ce77d 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1270,7 +1270,7 @@ pysmartthings==0.6.7 pysnmp==4.4.8 # homeassistant.components.sonos -pysonos==0.0.8 +pysonos==0.0.9 # homeassistant.components.spc pyspcwebgw==0.4.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index c9890f92626..e2935369d92 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -239,7 +239,7 @@ pysmartapp==0.3.2 pysmartthings==0.6.7 # homeassistant.components.sonos -pysonos==0.0.8 +pysonos==0.0.9 # homeassistant.components.spc pyspcwebgw==0.4.0