Spotify´s sources

Hi,

I want to play the spotify´s playlist on my sonos playbase. I have installed the home assistant on my mac. So the only source i have to play spotify is my mac. What i have to edit just to have my sonos has source on spotify?

I just have this on configuration.yaml

media_player:

  • platform: spotify
    client_id: xxxxxxxxxxxxxxxxxx
    client_secret: xxxxxxxxxxxxxxxxxxxxxxx
    media_content_type: playlist
    media_content_id: spotify:user:xxxxx:playlist:xxxxxxxxxxxxxxx

today i have this log:

Error doing job: Task exception was never retrieved
08:51 components/media_player/spotify.py (ERROR)

Even in my pc i cannot play it