Migrate entities and glance card state_color to color#53151
Open
piitaya wants to merge 2 commits into
Open
Conversation
10 tasks
piitaya
force-pushed
the
migrate-entities-glance-state-color
branch
from
July 16, 2026 14:00
60d58bd to
5b98151
Compare
8 tasks
Contributor
|
Monitoring this 👀 |
Contributor
|
Longstanding wish to have Also for glance. So thanks for this. Did you also think of picture-glance entities? |
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Breaking change
The entities card now colors icons based on the entity state by default, like the glance, tile and button cards. Previously, only light icons were colored unless
state_color: truewas set. To restore the previous look, setcolor: noneon the card.For custom card developers: the
colorproperty ofstate-badgenow follows thecolorAPI (state,none, theme colors applied while the entity is active) instead of being a raw CSS color applied unconditionally.Proposed change
Migrates the
entitiesandglancecards from the booleanstate_coloroption to thecoloroption (state,noneor a color) already used by badges, heading badges and the button card. Replaces #52294.state_colorkeeps working and is migrated tocolorwhen a card is edited, for the card and all built-in rows (custom rows are left untouched).state-badgeis the single place resolving thecoloroption; cards and rows just forward it.Screenshots
Type of change
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed:
To help with the load of incoming pull requests: