custom-cards / upcoming-media-card

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

Some attributes not recognized as 'sort_by' method #93

Open Andrewpaps opened 3 months ago

Andrewpaps commented 3 months ago

Describe the bug:

Sort method working for some attributes (price) and not others (percent_off, sale_price etc.).

Config YAML:

type: custom:upcoming-media-card
entity: sensor.steam_wishlist_76561198005339201
max: 999
image_style: fanart
sort_by: percent_off

Components:

  1. Upcoming-Media-Card custom component (v0.5.5)
  2. Steam Wishlist custom component (v2.4.0)

HA Error:

Not logged.

Troubleshooting Guide:

Guide followed.

Home Assistant Version:

Latest (2024.6.2)

Screenshots:

image

Additional Context:

N/A

mkanet commented 3 months ago

@Andrewpaps thank you so much for letting me know! I was able to reproduce it and fixed it in Upcoming Media Card version 0.5.6. Please update Upcoming Media Card when HACS detects the new version. Let me know how it goes. Note: You might have to delete your web browser's cache. Sometimes the old version gets stuck in cache.

PS: Steam Wishlist integration is also one of my favorites for UMC. This is what I am using currently:

entity: sensor.steam_wishlist_76561198117413333
title: Steam Wishlist
image_style: fanart
hide_empty: true
box_shadows: true
enable_tooltips: true
enable_transparency: true
collapse: price=🎫
sort_by: sale_price