mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Avoid Sonos errors for tracks with no artist information (#10160)
Rather than adding guards to the string formatting, just remove this unused attribute.
This commit is contained in:
parent
e50b59a56c
commit
f17cf1d26b
@ -321,7 +321,6 @@ class SonosDevice(MediaPlayerDevice):
|
||||
self._media_album_name = None
|
||||
self._media_title = None
|
||||
self._media_radio_show = None
|
||||
self._media_next_title = None
|
||||
self._available = True
|
||||
self._support_previous_track = False
|
||||
self._support_next_track = False
|
||||
@ -440,7 +439,6 @@ class SonosDevice(MediaPlayerDevice):
|
||||
self._media_album_name = None
|
||||
self._media_title = None
|
||||
self._media_radio_show = None
|
||||
self._media_next_title = None
|
||||
self._current_track_uri = None
|
||||
self._current_track_is_radio_stream = False
|
||||
self._support_previous_track = False
|
||||
@ -733,17 +731,6 @@ class SonosDevice(MediaPlayerDevice):
|
||||
next_track_uri
|
||||
)
|
||||
|
||||
next_track_metadata = event.variables.get('next_track_meta_data')
|
||||
if next_track_metadata:
|
||||
next_track = '{title} - {creator}'.format(
|
||||
title=next_track_metadata.title,
|
||||
creator=next_track_metadata.creator
|
||||
)
|
||||
if next_track != self._media_next_title:
|
||||
self._media_next_title = next_track
|
||||
else:
|
||||
self._media_next_title = None
|
||||
|
||||
elif event.service == self._player.renderingControl:
|
||||
if 'volume' in event.variables:
|
||||
self._player_volume = int(
|
||||
|
Loading…
x
Reference in New Issue
Block a user