custom-cards / upcoming-media-card

📺 A card to display upcoming episodes and movies from services like: Plex, Kodi, Radarr, Sonarr, and Trakt.
281 stars 78 forks source link

Upcoming Media Card not showing up on HA 0.117 #59

Closed gcorgnet closed 4 years ago

gcorgnet commented 4 years ago

Describe the bug:

The card is not displaying on Lovelace after upgrade to HA 0.117. There is an error in the Chrome Console

Config YAML:

  - type: custom:upcoming-media-card
    entity: sensor.sonarr_upcoming_media

Components:

Sonarr andf Radarr. The card doesn't work with any component.

HA Error:

upcoming-media-card.js:16 Uncaught (in promise) SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at HTMLElement.set hass [as hass] (upcoming-media-card.js:16)
    at HTMLElement._createCardElement (swipe-card.js:21)
    at async Promise.all (index 0)
    at async HTMLElement._createCards (swipe-card.js:21)

Troubleshooting Guide:

Home Assistant Version:

0.117

Screenshots:

image

Additional Context:

maykar commented 4 years ago

Make sure upcoming media card and any component you are using with it is at the latest version. Looking back on some issues posted on the forums I found this same error https://community.home-assistant.io/t/lovelace-upcoming-media-card/66562/191

They needed to update the components used for the card as they had updated the card, but were using older versions of the components.

I can confirm that the components and card are still working in 0.117, inside swipe-card as well.

gcorgnet commented 4 years ago

Sorry, my bad, got it working after messing around with it.