amaximus / garbage-collection-card

Custom Lovelace card for Garbage Collection custom component
MIT License
127 stars 24 forks source link

[BUG] friendly_name not working #97

Closed tidusjar closed 1 year ago

tidusjar commented 1 year ago

Describe the bug Looking at the code and previous issues, it seems that friendly_name should be supported? Currently that does not work

To Reproduce Steps to reproduce the behavior: Following config:

type: custom:garbage-collection-card
entity: sensor.green
friendly_name: GreenBin
hide_before: 7
icon_color: green
hide_date: true

has the following output image

Expected behavior The title of the card to be GreenBin and not Green

Environment (please complete the following information):

amaximus commented 1 year ago

Entities have friendly_name attribute, not the UI elements. The card does not have a friendly_name config parameter, but supports friendly_name attribute of the sensor. Please define one at entity level (e.g. for sensor.green).

Please get back to me with results.

tidusjar commented 1 year ago

Ahhh yeah that works