mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Made spotify playlist name validation less strict (#28684)
This commit is contained in:
parent
ce8e0e5489
commit
1495df374b
@ -307,7 +307,7 @@ class SpotifyMediaPlayer(MediaPlayerDevice):
|
||||
|
||||
def play_playlist(self, media_id, random_song):
|
||||
"""Play random music in a playlist."""
|
||||
if not media_id.startswith("spotify:playlist:"):
|
||||
if not media_id.startswith("spotify:"):
|
||||
_LOGGER.error("media id must be spotify playlist uri")
|
||||
return
|
||||
kwargs = {"context_uri": media_id}
|
||||
|
Loading…
x
Reference in New Issue
Block a user