Skip to content

Resolve main-row action templates; add reserve_header (#460, #459) - #461

Merged
jpettitt merged 2 commits into
masterfrom
issue-459-460-row-fixes
Oct 2, 2026
Merged

jpettitt merged 2 commits into
masterfrom
issue-459-460-row-fixes

Conversation

@jpettitt

@jpettitt jpettitt commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

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_path navigated to the literal {{ … }}. The main state value and additional entities go through the card's own dispatch, which already resolved templates (#422).

  • The row's tap_action / hold_action / double_tap_action are resolved in that config on each render. HA reads it at tap time (hui-generic-entity-row._handleAction), so it stays current.
  • A pending result resolves to '', 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 without state_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: false on the row drops that line; the default is unchanged.
  • YAML-only, like 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

jpettitt and others added 2 commits October 1, 2026 19:45
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
@jpettitt
jpettitt merged commit b6c519e into master Oct 2, 2026
2 checks passed
@mikosoft83

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants