nervetattoo / banner-card

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

Adds the ability to use icons within name field #129

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.

This will fix the problem brought up in: #128