Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement/Entity Name Icon #131

Closed
wants to merge 7 commits into from
Closed

Enhancement/Entity Name Icon #131

wants to merge 7 commits into from

Conversation

mreditor97
Copy link

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
Copy link
Author

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

@mreditor97 mreditor97 marked this pull request as ready for review October 18, 2021 19:11
@mreditor97 mreditor97 closed this Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant