Commit Graph

356 Commits

Author SHA1 Message Date
semantic-release-bot 2562b84360 chore(release): 4.1.2 [skip ci]
### [4.1.2](https://github.com/custom-cards/button-card/compare/v4.1.1...v4.1.2) (2024-02-01)

### Bug Fixes

* card would sometimes not be clickable ([56c3f44](56c3f44066)), closes [#738](https://github.com/custom-cards/button-card/issues/738) [#759](https://github.com/custom-cards/button-card/issues/759)
* support for new ha-state-icon in 2024.02 ([ab2b393](ab2b3939bc))
2024-02-01 11:21:38 +00:00
semantic-release-bot 605b096509 chore(release): 4.1.2-dev.2 [skip ci]
### [4.1.2-dev.2](https://github.com/custom-cards/button-card/compare/v4.1.2-dev.1...v4.1.2-dev.2) (2024-02-01)

### Bug Fixes

* support for new ha-state-icon in 2024.02 ([ab2b393](ab2b3939bc))
2024-02-01 10:20:22 +00:00
Jérôme Wiedemann ab2b3939bc fix: support for new ha-state-icon in 2024.02 2024-02-01 10:19:23 +00:00
semantic-release-bot 27877b9f68 chore(release): 4.1.2-dev.1 [skip ci]
### [4.1.2-dev.1](https://github.com/custom-cards/button-card/compare/v4.1.1...v4.1.2-dev.1) (2023-08-20)

### Bug Fixes

* card would sometimes not be clickable ([56c3f44](56c3f44066)), closes [#738](https://github.com/custom-cards/button-card/issues/738) [#759](https://github.com/custom-cards/button-card/issues/759)
2023-08-20 15:46:11 +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
semantic-release-bot 121ae82326 chore(release): 4.1.1 [skip ci]
### [4.1.1](https://github.com/custom-cards/button-card/compare/v4.1.0...v4.1.1) (2023-08-03)

### Bug Fixes

* **color:** color wouldn't follow light color with `color: auto` ([b63f0db](b63f0db220)), closes [#737](https://github.com/custom-cards/button-card/issues/737)
2023-08-03 13:28:22 +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
semantic-release-bot 0bf22d5c43 chore(release): 4.1.0 [skip ci]
## [4.1.0](https://github.com/custom-cards/button-card/compare/v4.0.1...v4.1.0) (2023-08-03)

### Features

* **templates:** Support for one time evaluation of js templates in `triggers_update` and `entity` ([#741](https://github.com/custom-cards/button-card/issues/741)) ([b372642](b372642253)), closes [#618](https://github.com/custom-cards/button-card/issues/618) [#558](https://github.com/custom-cards/button-card/issues/558) [#368](https://github.com/custom-cards/button-card/issues/368)

### Bug Fixes

* Keep default background color for color_type: card when off ([41dea3f](41dea3f72a)), closes [#737](https://github.com/custom-cards/button-card/issues/737)
* lock would not display on many browsers ([245441b](245441b69f)), closes [#740](https://github.com/custom-cards/button-card/issues/740)
* remove margin-top on name/label/state introduced with 4.0.0 which broke many cards ([53fee75](53fee75c16)), closes [#742](https://github.com/custom-cards/button-card/issues/742) [#744](https://github.com/custom-cards/button-card/issues/744)
2023-08-03 12:25:27 +00:00
semantic-release-bot 5d2e95743c chore(release): 4.1.0-dev.3 [skip ci]
## [4.1.0-dev.3](https://github.com/custom-cards/button-card/compare/v4.1.0-dev.2...v4.1.0-dev.3) (2023-08-01)

### Bug Fixes

* lock would not display on many browsers ([245441b](245441b69f)), closes [#740](https://github.com/custom-cards/button-card/issues/740)
2023-08-01 12:28: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
semantic-release-bot 5ebd870a0e chore(release): 4.1.0-dev.2 [skip ci]
## [4.1.0-dev.2](https://github.com/custom-cards/button-card/compare/v4.1.0-dev.1...v4.1.0-dev.2) (2023-08-01)

### Bug Fixes

* remove margin-top on name/label/state introduced with 4.0.0 which broke many cards ([53fee75](53fee75c16)), closes [#742](https://github.com/custom-cards/button-card/issues/742) [#744](https://github.com/custom-cards/button-card/issues/744)
2023-08-01 08:36:59 +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
semantic-release-bot af79877e7f chore(release): 4.1.0-dev.1 [skip ci]
## [4.1.0-dev.1](https://github.com/custom-cards/button-card/compare/v4.0.1...v4.1.0-dev.1) (2023-07-30)

### Features

* **templates:** Support for one time evaluation of js templates in `triggers_update` and `entity` ([#741](https://github.com/custom-cards/button-card/issues/741)) ([b372642](b372642253)), closes [#618](https://github.com/custom-cards/button-card/issues/618) [#558](https://github.com/custom-cards/button-card/issues/558) [#368](https://github.com/custom-cards/button-card/issues/368)

### Bug Fixes

* Keep default background color for color_type: card when off ([41dea3f](41dea3f72a)), closes [#737](https://github.com/custom-cards/button-card/issues/737)
2023-07-30 21:26:19 +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
semantic-release-bot f7371077b5 chore(release): 4.0.1 [skip ci]
### [4.0.1](https://github.com/custom-cards/button-card/compare/v4.0.0...v4.0.1) (2023-07-30)

### Bug Fixes

* color: auto/auto-no-temperature was broken ([a63f9a9](a63f9a96a5)), closes [#737](https://github.com/custom-cards/button-card/issues/737)
2023-07-30 14:15:41 +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 bb4bc29b0f chore: update vscode extensions 2023-07-30 09:25:28 +00:00
semantic-release-bot d5ff669eb1 chore(release): 4.0.0 [skip ci]
## [4.0.0](https://github.com/custom-cards/button-card/compare/v3.5.0...v4.0.0) (2023-07-29)

### ⚠ BREAKING CHANGES

* **helpers:** 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)`
* **hacs:** Minimum required HA Version is now 2023.7
* **actions:** 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)
* **icons:** This might break your card-mod setup
* this might break some of your color settings

### Features

* **action:** `repeat_limit` for `hold_action` ([73c216f](73c216f1bf)), closes [#564](https://github.com/custom-cards/button-card/issues/564) [#555](https://github.com/custom-cards/button-card/issues/555)
* **actions:** Support for the new action (assist) and all the future ones ([d9c17a4](d9c17a4065)), closes [#711](https://github.com/custom-cards/button-card/issues/711) [#685](https://github.com/custom-cards/button-card/issues/685)
* **custom_fields:** Add `do_not_eval` to stop evaluating js templates in an embedded card ([1638cf8](1638cf8121))
* **helpers:** all template functions are now available through the `helpers` object ([f22ed69](f22ed6982f))
* **icons:** replace ha-icon with ha-state-icon to follow new HA's icons per domain automatically ([ab6a3f5](ab6a3f5bd3))
* **templates:** new `relativeTime` function to display a relative time in a template and update it automatically ([965a3d7](965a3d7b97)), closes [#701](https://github.com/custom-cards/button-card/issues/701)
* **templates:** New date and time format helpers ([9b4fb05](9b4fb05e4e))
* **variables:** A variable can depend on another variable based on their name's alphabetical order ([8cddccb](8cddccb834)), closes [#656](https://github.com/custom-cards/button-card/issues/656)
* Force the `numeric_precision` for states which are numbers ([24d75c2](24d75c2651))
* new helper functions for date/time in templates ([2b75993](2b75993f22)), closes [#701](https://github.com/custom-cards/button-card/issues/701)
* Support for localization in templates ([5de2dc9](5de2dc9067))

### Bug Fixes

* *_action more-info entity as a template was not evaluated ([02441b2](02441b2982)), closes [#734](https://github.com/custom-cards/button-card/issues/734)
* `group_expand` now works even if the entity is not a `group.xxx` ([f192ded](f192ded67f)), closes [#645](https://github.com/custom-cards/button-card/issues/645)
* Color are now aligned with HA > 2022.12 ([685d55e](685d55e49c)), closes [#635](https://github.com/custom-cards/button-card/issues/635)
* custom fields would sometime throw unsafeHTML errors ([c67e1d5](c67e1d550c)), closes [#725](https://github.com/custom-cards/button-card/issues/725)
* ha-icon (if in custom_fields) size was weird ([a448c8e](a448c8e826))
* ha-state-icon CSS selector was wrong ([a1bb39a](a1bb39a71c))
* icon would be cut with card height defined ([19f8393](19f8393193)), closes [#731](https://github.com/custom-cards/button-card/issues/731)
* localization fix ([02dfab3](02dfab3db3)), closes [#685](https://github.com/custom-cards/button-card/issues/685) [#693](https://github.com/custom-cards/button-card/issues/693)
* lock icon was displaying over more-info dialog ([bf075b0](bf075b00e4)), closes [#694](https://github.com/custom-cards/button-card/issues/694)
* lock would go out of the button ([0b3e4d3](0b3e4d331c))
* non string fiels would error with an unsafeHTML error ([d65c347](d65c34757a)), closes [#725](https://github.com/custom-cards/button-card/issues/725)
* numerical states would not follow HA's format ([72d7c41](72d7c4133f)), closes [#662](https://github.com/custom-cards/button-card/issues/662)
* optimize contrast color compute ([35109c3](35109c3d5c))
* relativeTime didn't support to set the first letter uppercase ([f8b9b09](f8b9b09169)), closes [#735](https://github.com/custom-cards/button-card/issues/735)
* Some cards with child cards wouldn't be clickable ([9f21c58](9f21c58dac))
* text/icon contrast when using label-card ([01e199b](01e199b18b))
* variable which were objects were only evaluated once ([e40bda9](e40bda9da6))
* **templates:** `variables` was `undefined` if none where provided. ([fad332b](fad332b80d)), closes [#718](https://github.com/custom-cards/button-card/issues/718)
* tooltip would show over everything ([1bc8f99](1bc8f99501))
* **color:** main config `color` was broken ([b93c996](b93c9969c2))
* **hacs:** minimum HA version 2023.7 ([db3b394](db3b394fa6))
* **templates:** don't use the `numeric_precision` from the card config for `localize` in js templates by default ([2cc384f](2cc384f9dc))
2023-07-29 00:13:18 +00:00
semantic-release-bot 2edc382d9b chore(release): 4.0.0-dev.19 [skip ci]
## [4.0.0-dev.19](https://github.com/custom-cards/button-card/compare/v4.0.0-dev.18...v4.0.0-dev.19) (2023-07-29)

### Bug Fixes

* variable which were objects were only evaluated once ([e40bda9](e40bda9da6))
2023-07-29 00:09:07 +00:00
Jérôme Wiedemann e40bda9da6 fix: variable which were objects were only evaluated once 2023-07-29 00:07:47 +00:00
semantic-release-bot 976e53fbe9 chore(release): 4.0.0-dev.18 [skip ci]
## [4.0.0-dev.18](https://github.com/custom-cards/button-card/compare/v4.0.0-dev.17...v4.0.0-dev.18) (2023-07-28)

### Features

* **custom_fields:** Add `do_not_eval` to stop evaluating js templates in an embedded card ([1638cf8](1638cf8121))

### Bug Fixes

* relativeTime didn't support to set the first letter uppercase ([f8b9b09](f8b9b09169)), closes [#735](https://github.com/custom-cards/button-card/issues/735)
2023-07-28 11:14:32 +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
semantic-release-bot f0a77fd455 chore(release): 4.0.0-dev.17 [skip ci]
## [4.0.0-dev.17](https://github.com/custom-cards/button-card/compare/v4.0.0-dev.16...v4.0.0-dev.17) (2023-07-27)

### Features

* **variables:** A variable can depend on another variable based on their name's alphabetical order ([8cddccb](8cddccb834)), closes [#656](https://github.com/custom-cards/button-card/issues/656)
2023-07-27 19:02:10 +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 295909be5e chore(doc): Update README badges + prettier config 2023-07-27 16:13:22 +00:00
Jérôme Wiedemann 2c56bace89 chore: refactor evalAction 2023-07-27 10:10:07 +00:00
semantic-release-bot 814084128e chore(release): 4.0.0-dev.16 [skip ci]
## [4.0.0-dev.16](https://github.com/custom-cards/button-card/compare/v4.0.0-dev.15...v4.0.0-dev.16) (2023-07-27)

### Bug Fixes

* *_action more-info entity as a template was not evaluated ([02441b2](02441b2982)), closes [#734](https://github.com/custom-cards/button-card/issues/734)
2023-07-27 09:52:29 +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
semantic-release-bot 947ed5464b chore(release): 4.0.0-dev.15 [skip ci]
## [4.0.0-dev.15](https://github.com/custom-cards/button-card/compare/v4.0.0-dev.14...v4.0.0-dev.15) (2023-07-26)

### Features

* **templates:** New date and time format helpers ([9b4fb05](9b4fb05e4e))
2023-07-26 16:51:55 +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
semantic-release-bot 4d52c7e98c chore(release): 4.0.0-dev.14 [skip ci]
## [4.0.0-dev.14](https://github.com/custom-cards/button-card/compare/v4.0.0-dev.13...v4.0.0-dev.14) (2023-07-26)

### ⚠ BREAKING CHANGES

* **helpers:** 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)`

### Features

* **helpers:** all template functions are now available through the `helpers` object ([f22ed69](f22ed6982f))

### Bug Fixes

* `group_expand` now works even if the entity is not a `group.xxx` ([f192ded](f192ded67f)), closes [#645](https://github.com/custom-cards/button-card/issues/645)
2023-07-26 10:56:41 +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
semantic-release-bot 87d321a27f chore(release): 4.0.0-dev.13 [skip ci]
## [4.0.0-dev.13](https://github.com/custom-cards/button-card/compare/v4.0.0-dev.12...v4.0.0-dev.13) (2023-07-26)

### Bug Fixes

* **templates:** `variables` was `undefined` if none where provided. ([fad332b](fad332b80d)), closes [#718](https://github.com/custom-cards/button-card/issues/718)
2023-07-26 09:53:18 +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
semantic-release-bot 529f954cec chore(release): 4.0.0-dev.12 [skip ci]
## [4.0.0-dev.12](https://github.com/custom-cards/button-card/compare/v4.0.0-dev.11...v4.0.0-dev.12) (2023-07-26)

### Bug Fixes

* icon would be cut with card height defined ([19f8393](19f8393193)), closes [#731](https://github.com/custom-cards/button-card/issues/731)
2023-07-26 07:53:37 +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
semantic-release-bot 2df5392dd9 chore(release): 4.0.0-dev.11 [skip ci]
## [4.0.0-dev.11](https://github.com/custom-cards/button-card/compare/v4.0.0-dev.10...v4.0.0-dev.11) (2023-07-26)

### Features

* **templates:** new `relativeTime` function to display a relative time in a template and update it automatically ([965a3d7](965a3d7b97)), closes [#701](https://github.com/custom-cards/button-card/issues/701)

### Bug Fixes

* ha-state-icon CSS selector was wrong ([a1bb39a](a1bb39a71c))
* tooltip would show over everything ([1bc8f99](1bc8f99501))
* **templates:** don't use the `numeric_precision` from the card config for `localize` in js templates by default ([2cc384f](2cc384f9dc))
2023-07-26 00:09:21 +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
semantic-release-bot e5fa12c4ec chore(release): 4.0.0-dev.10 [skip ci]
## [4.0.0-dev.10](https://github.com/custom-cards/button-card/compare/v4.0.0-dev.9...v4.0.0-dev.10) (2023-07-25)

### Bug Fixes

* **color:** main config `color` was broken ([b93c996](b93c9969c2))
2023-07-25 16:42:34 +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
semantic-release-bot 8a20c87337 chore(release): 4.0.0-dev.9 [skip ci]
## [4.0.0-dev.9](https://github.com/custom-cards/button-card/compare/v4.0.0-dev.8...v4.0.0-dev.9) (2023-07-24)

### Bug Fixes

* numerical states would not follow HA's format ([72d7c41](72d7c4133f)), closes [#662](https://github.com/custom-cards/button-card/issues/662)
2023-07-24 23:41:55 +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