nervetattoo / banner-card

A fluffy banner card for Home Assistant 🥰
MIT License
609 stars 57 forks source link

Enhancement/Entity Name Icon #131

Closed mreditor97 closed 3 years ago

mreditor97 commented 3 years ago

Adds the ability to use a array of both icons and words within the name field of each entity.

Example configuration would can now be:

type: custom:banner-card
heading:
  - mdi:counter-top
  - Kitchen
link: kitchen
entities:
  - entity: light.kitchen_light
    name:
      - mdi:ceiling-light
      - Lights
  - entity: sensor.kitchen_temperature
    name: Temperature
  - entity: sensor.kitchen_humidity
    name: mdi:water-percent

As can be seen, the old method of configuration works, but now, it is possible to add a array of items within the name field which can include icons from both mdi and hass. Name now functions the same way the heading does.

This should fix the problem brought up in: #128

mreditor97 commented 3 years ago

After separating the changes into two separate branches, here is the icons change.