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

Allow use of home-assistant icons in template card secondary. #1397

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Commits on Mar 29, 2024

  1. Allow home assistant icons to be used in the "secondary" area of mush…

    …room cards.
    
    Converts {mdi:icon-name} to <ha-icon icon="mdi:icon-name"></ha-icon>, before rendering.
    thybag committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    9b0307a View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. Re: feedback, relocate parseIcon functionality to template-card

    - Icon format changed to :mdi🔤
    - Added logic to skip creating fragment if no icons found in string
    - Icon size CSS left in state-info as it relates to display of that area.
    - Lint & retest on local
    thybag committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    1792000 View commit details
    Browse the repository at this point in the history
  2. Simplify logic

    - Make var naming more consistent with existing (calling it Text)
    - No need to handle `text` being a TemplateResult at this point, so skip the extra assignments.
    thybag committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    e167c7a View commit details
    Browse the repository at this point in the history