Repository navigation
Resolve main-row action templates; add reserve_header (#460, #459) - #461
Merged
Merged
Conversation
Since 4.10.0 a name:false entity keeps an empty header line beside a headered sibling so values sit level (#281). Some rows read better with those values centered; reserve_header: false turns that off for the whole row. The default is unchanged. Refs #459 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Reviewed-by: John Pettitt @jpettitt
Taps on the row's icon, name and secondary line are dispatched by HA's own row from the config the card hands it, which still carried the raw Jinja - only the card's own dispatch (main state value, additional entities) resolved it. HA reads that config at tap time, so resolving it per render keeps it current. Refs #460 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Reviewed-by: John Pettitt @jpettitt
|
Hi Tested but unfortunately the nbsp is still there when I use reserve_header. I checked the console and I am using the latest beta. |
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.
Two small row fixes, one commit each.
Main-row action templates (#460). Taps on the row's icon, name and secondary line are dispatched by HA's own row element from the config the card passes it, and that config still carried the raw Jinja - so a templated
navigation_pathnavigated to the literal{{ … }}. The main state value and additional entities go through the card's own dispatch, which already resolved templates (#422).tap_action/hold_action/double_tap_actionare resolved in that config on each render. HA reads it at tap time (hui-generic-entity-row._handleAction), so it stays current.'', as in the card's own dispatch.reserve_header: false(#459). Since 4.10.0 an entity without a header (name: false, or the main state withoutstate_header) keeps an empty header line when a sibling shows one, so their values sit level (#281). Some rows read better with those values centered.reserve_header: falseon the row drops that line; the default is unchanged.align. README table row and a note under Theming.Verified on HA 2026.9.3. 5 new tests.
Fixes #460
Fixes #459
🤖 Generated with Claude Code and reviewed by @jpettitt