Home Assistant recently changed the way Spotify's configured so I wrote up a guide. This works with most versions of HomeAssistant but I used it with 106 & up.

Steps

spotify:
  client_id: !secret spotify_id (OR "clientidxyz")
  client_secret: !secret spotify_secret (OR "clientsecretxyz")

Add Spotify to your Lovelace Dashboard