Skip to content

4.11.0-beta.2

Pre-release
Pre-release

Choose a tag to compare

@jpettitt jpettitt released this 23 Aug 21:56
· 3 commits to master since this release

Second 4.11.0 beta — adds a state → color map and fixes an icon-color leak reported on beta.1. Feedback welcome on #444 and #445 before the final release. Install via HACS with Show beta versions enabled.

New since beta.1

  • state_color map (#444) — a per-state color, the way state_icon is a per-state icon. Overrides color for matching states; unmatched states fall back to color. Painted whether or not the entity is active (unlike color, which HA applies only to active entities), and static, so it costs no template subscription. The boolean form keeps working as the deprecated alias.
    - entity: sensor.backup_status
      color: var(--disabled-text-color)
      state_color:
        critical: var(--error-color)
        warning: var(--warning-color)
        ok: var(--success-color)
  • Row icon_color no longer bleeds into additional entities (#445). It painted through row-wide CSS variables that cascaded into every sub-entity icon showing its default color, with no way to undo it. It now paints the main icon only; a sub-entity that relied on inheriting it sets its own icon_color. Behaviour change.

From beta.1

  • name_gap — spacing between the main icon and the row name (#401, contributed by @BlackZork).
  • Templates in styles (#439) — color the displayed text by state; works on the row, additional entities and secondary_info.
  • Additional entities follow the row's color (#441) — color: none on the row restores the pre-4.9 look for the whole row. Behaviour change.
  • styles on a secondary_info object works again.

Full Changelog: v4.10.2...v4.11.0-beta.2