Jérôme Wiedemann
ab2b3939bc
fix: support for new ha-state-icon in 2024.02
2024-02-01 10:19:23 +00:00
Jérôme Wiedemann
56c3f44066
fix: card would sometimes not be clickable
...
Fix #738 , Fix #759
2023-08-20 15:43:25 +00:00
Jérôme Wiedemann
b63f0db220
fix(color): color wouldn't follow light color with `color: auto`
...
Fixes #737
2023-08-03 13:26:32 +00:00
Jérôme Wiedemann
245441b69f
fix: lock would not display on many browsers
...
Fixes #740
2023-08-01 12:27:02 +00:00
Jérôme Wiedemann
53fee75c16
fix: remove margin-top on name/label/state introduced with 4.0.0 which broke many cards
...
Fixes #742 , Fixes #744
2023-08-01 08:35:09 +00:00
Jérôme W
b372642253
feat(templates): Support for one time evaluation of js templates in `triggers_update` and `entity` ( #741 )
...
Fixes #618 , Fixes #558 , Fixes #368
2023-07-30 23:22:09 +02:00
Jérôme Wiedemann
41dea3f72a
fix: Keep default background color for color_type: card when off
...
Fix #737
2023-07-30 20:33:04 +00:00
Jérôme Wiedemann
a63f9a96a5
fix: color: auto/auto-no-temperature was broken
...
Fix #737
2023-07-30 14:13:52 +00:00
Jérôme Wiedemann
e40bda9da6
fix: variable which were objects were only evaluated once
2023-07-29 00:07:47 +00:00
Jérôme Wiedemann
f8b9b09169
fix: relativeTime didn't support to set the first letter uppercase
...
Fix #735
2023-07-28 11:12:28 +00:00
Jérôme Wiedemann
1638cf8121
feat(custom_fields): Add `do_not_eval` to stop evaluating js templates in an embedded card
2023-07-27 19:32:00 +00:00
Jérôme Wiedemann
8cddccb834
feat(variables): A variable can depend on another variable based on their name's alphabetical order
...
Fix #656
2023-07-27 19:00:26 +00:00
Jérôme Wiedemann
2c56bace89
chore: refactor evalAction
2023-07-27 10:10:07 +00:00
Jérôme Wiedemann
02441b2982
fix: *_action more-info entity as a template was not evaluated
...
Fix #734
2023-07-27 09:49:50 +00:00
Jérôme Wiedemann
9b4fb05e4e
feat(templates): New date and time format helpers
2023-07-26 16:34:20 +00:00
Jérôme Wiedemann
7fa82bffb0
chore: remove unneeded import
2023-07-26 16:34:20 +00:00
Jérôme Wiedemann
f22ed6982f
feat(helpers)!: all template functions are now available through the `helpers` object
...
BREAKING CHANGE: If you were using any of the beta before `4.0.0-dev14`. Please replace all the calls to helper functions with `helpers.xxx` for eg. `helpers.relativeTime(entity.state)` or `helpers.localize(entity)`
2023-07-26 10:45:49 +00:00
Jérôme Wiedemann
f192ded67f
fix: `group_expand` now works even if the entity is not a `group.xxx`
...
Fix #645
2023-07-26 10:10:05 +00:00
Jérôme Wiedemann
fad332b80d
fix(templates): `variables` was `undefined` if none where provided.
...
Fix #718
2023-07-26 09:51:18 +00:00
Jérôme Wiedemann
19f8393193
fix: icon would be cut with card height defined
...
#Fix #731
2023-07-26 07:51:41 +00:00
Jérôme Wiedemann
965a3d7b97
feat(templates): new `relativeTime` function to display a relative time in a template and update it automatically
...
Fix #701
2023-07-26 00:07:29 +00:00
Jérôme Wiedemann
1bc8f99501
fix: tooltip would show over everything
2023-07-25 23:40:57 +00:00
Jérôme Wiedemann
a1bb39a71c
fix: ha-state-icon CSS selector was wrong
2023-07-25 23:40:57 +00:00
Jérôme Wiedemann
2cc384f9dc
fix(templates): don't use the `numeric_precision` from the card config for `localize` in js templates by default
2023-07-25 23:40:57 +00:00
Jérôme Wiedemann
36e0dc15af
chore: fix compilation issue
2023-07-25 16:40:05 +00:00
Jérôme Wiedemann
b93c9969c2
fix(color): main config `color` was broken
2023-07-25 16:11:35 +00:00
Jérôme Wiedemann
72d7c4133f
fix: numerical states would not follow HA's format
...
Fix #662
2023-07-24 23:38:04 +00:00
Jérôme Wiedemann
24d75c2651
feat: Force the `numeric_precision` for states which are numbers
2023-07-24 19:20:45 +00:00
Jérôme Wiedemann
a448c8e826
fix: ha-icon (if in custom_fields) size was weird
2023-07-24 18:56:20 +00:00
Jérôme Wiedemann
452ee0ff24
Revert "feat(action): Support for `press_action` and `release_action`"
...
This reverts commit 27043d7c11
.
2023-07-24 18:50:15 +00:00
Jérôme Wiedemann
27043d7c11
feat(action): Support for `press_action` and `release_action`
2023-07-24 17:18:12 +00:00
Jérôme Wiedemann
73c216f1bf
feat(action): `repeat_limit` for `hold_action`
...
Fix #564 , Fix #555
2023-07-24 16:46:10 +00:00
Jérôme Wiedemann
2b75993f22
feat: new helper functions for date/time in templates
...
Fix #701
2023-07-24 15:04:42 +00:00
Jérôme Wiedemann
d65c34757a
fix: non string fiels would error with an unsafeHTML error
...
Fix #725
2023-07-24 14:06:46 +00:00
Jérôme Wiedemann
c67e1d550c
fix: custom fields would sometime throw unsafeHTML errors
...
Fix #725
2023-07-24 11:08:27 +00:00
Jérôme Wiedemann
5de2dc9067
feat: Support for localization in templates
2023-07-24 10:56:31 +00:00
Jérôme Wiedemann
331ed6ad53
chore: remove dependency with custom-card-helpers
2023-07-24 07:50:43 +00:00
Jérôme Wiedemann
35109c3d5c
fix: optimize contrast color compute
2023-07-24 01:45:34 +00:00
Jérôme Wiedemann
9f21c58dac
fix: Some cards with child cards wouldn't be clickable
2023-07-24 01:45:34 +00:00
Jérôme Wiedemann
d438db6e4c
chore: fix lit-element import deprecation message
2023-07-24 01:45:34 +00:00
Jérôme Wiedemann
01e199b18b
fix: text/icon contrast when using label-card
2023-07-24 00:01:52 +00:00
Jérôme Wiedemann
2f42a6df8b
chore: fix compilation errors
2023-07-23 22:30:48 +00:00
Jérôme Wiedemann
d9c17a4065
feat(actions)!: Support for the new action (assist) and all the future ones
...
This also fixes the latest translations missing and starts the work to remove custom-cards-helper from the dependencies.
BREAKING CHANGE: Requires HA 2023.4 minimum. Support for the new action format (`target` is also be supported), `service_data` should be renamed to `data` (but it still works with the old format)
Fix #711 , #685
2023-07-23 22:23:29 +00:00
Jérôme Wiedemann
ab6a3f5bd3
feat(icons)!: replace ha-icon with ha-state-icon to follow new HA's icons per domain automatically
...
BREAKING CHANGE: This might break your card-mod setup
2023-07-23 18:15:21 +00:00
Jérôme Wiedemann
685d55e49c
fix!: Color are now aligned with HA > 2022.12
...
BREAKING CHANGE: this might break some of your color settings
Fix #635
2023-07-23 16:51:18 +00:00
Jérôme Wiedemann
0b3e4d331c
fix: lock would go out of the button
2023-07-23 16:51:18 +00:00
Jérôme Wiedemann
bf075b00e4
fix: lock icon was displaying over more-info dialog
...
Fix #694
2023-07-23 16:51:18 +00:00
Jérôme Wiedemann
02dfab3db3
fix: localization fix
...
Fix #685 #693
2023-07-23 16:51:03 +00:00
Jérôme Wiedemann
699b57d5fc
fix: extra space at bottom because of button-card-action-handler
...
Fix #672
2023-04-02 14:37:04 +00:00
Jérôme Wiedemann
9b4f1e23be
fix: card broken with HA 2023.04bXX
...
Closes #669 , closes #671
2023-04-02 14:32:23 +00:00