custom-cards / spotify-card

Spotify playlist card for Home Assistant card
Other
362 stars 61 forks source link

second card shows incorrect playing info when two users configured #179

Open scyto opened 2 years ago

scyto commented 2 years ago

Describe the bug When configuring two cards for two uers on the same premium account the seconf users card shows thje second users device, but shows the playing item from the first user

To Reproduce Steps to reproduce the behavior:

Expected behavior I expect the second card to accurately reflect whats playing on that device?

Screenshots this shows accurately what is playing on user alex and user sarah devices image

this spotify card is right image

this spotify card is wrong (right device, wrong track) image

Environment (please complete the following information):

Configuration right card

type: custom:spotify-card
account: alex
limit: 10

wrong card

type: custom:spotify-card
account: sarah
limit: 10
hide_chromecast_devices: true

config yaml


spotify:
  client_id:     469778246f55redacted
  client_secret: c592a38c624redacted

spotcast:
  sp_dc: AQBjZ26RNK75Fq0iOUdSJBDredacted
  sp_key: f2119df1-redacted
  accounts:
    sarah:
      sp_dc: AQChM3Fiy5LjOblHcg921redacted
      sp_key: 40521312-4d65-redacted
    alex:
      sp_dc: AQBG9wfZl2zBzYf01Q-redacted
      sp_key: eb14f980-redacted

**Additional context**
Add any other context about the problem here.