5.0.0 (2025-10-05)
⚠ BREAKING CHANGES
- actions:
*_action
andicon_*_action
stricly follow what is
allowed in the configuration of this card (see updated documentation).
If you used some hacks, it might break. If those hacks were created to
run javascript code, you can now useaction: javascript
instead. - actions: Some of you were using hacks to execute javascript
actions. This release officially implementsaction: javascript
and
this is the only supported way to execute javascript actions going
forward. Any other configuration might execute the javascript action
while the card is first displayed. Please update your config accordingly
and read the updated documentation. - actions: CSS variables
--mdc-ripple-*
are no longer supported.
These have been replaced with--button-card-ripple-*
variables. You
will need to update your configuration. - color: Card background color will always be
var (--card-background-color)
when state is inactive andcolor_type: card
. You can set card background with state.
Features
- actions: migrate to ha-ripple (#1011) (3c4dc92), closes #887
- actions: Official support for native javascript actions (#1022) (62163cc), closes #1021
- actions: press and release support for momentary actions (#1014) (76f2fd4), closes #360 #249
- Add
icon_*_action
support (#984) (4e02887), closes #739 - allow html tooltips using the lit html tag (5bb800a)
- Support update timer (#981) (4717feb), closes #436
Bug Fixes
- actions: avoid executing invalid actions configurations (#1023) (fe05b52)
- color: inactive card background no longer inactive color when
colour_type: card
andcolor
set. (#987) (b4f00f9), closes #754 - console error on click introduced in 5.0.0-dev.1 (fc39748), closes #1001
- double triggers with icon_*_actions (d9725d7)
- Embedded light card handle issue (#989) (d01ef37), closes #427 #901
- Event propagation to parent would not propagate the event properties (#1017) (a2051d4), closes #1015
- Hold action on picture entity (#996) (9f2501f), closes #994
- Move while hold on touch devices (#993) (2c17386)
- Type error when using actions in templates (#1020) (55956fe), closes #1019