Releases: jcwillox/lovelace-paper-buttons-row
v2.3.1
v2.3.0
✨ Features
🐛 Bug Fixes
- Change action handler position to fixed (#126) (cf40178)
- Error due to trying to compute state name without entity (eed4fe1)
- Not a function errors when state is not a string (3669f67), closes #212
- Pull upstream action handler changes from core (c097cba), closes #196
🏗️ Chore
♻️ Refactoring
- Migrate to biome v2 (1f72b1f)
📦 Build
- deps: Lock file maintenance (#208) (d1da19c)
- deps: Update all non-major dependencies (#206) (a604210)
- deps: Update dependency @biomejs/biome to v2 (01e4782)
- deps: Update dependency vite to v6.1.6 [security] (#203) (e54181f)
- deps: Update pnpm to v10 (#207) (99f9681)
- deps: Use deep equal package from npm (3229091)
Full Changelog: v2.2.1...v2.3.0
v2.2.1
🐛 Bug Fixes
🏗️ Chore
♻️ Refactoring
- Replace eslint with biome (c119669)
📦 Build
- deps: Lock file maintenance (#193) (386c1d6)
- deps: Update all non-major dependencies (#191) (aacec6b)
- deps: Update dependency @types/node to v22 (#197) (38c959f)
- deps: Update dependency vite to v6 (#199) (02cadf5)
Full Changelog: v2.2.0...v2.2.1
v2.2.0
Mostly a maintenance release, only notable change is I updated the build to target es6
(or es2015
), which should improve support for older browsers.
🐛 Bug Fixes
- Revert to lit 2.0 until adopted by home assistant (4da7bb0)
- The switch to lit 3.0 was never included in a release, so nothing changed here, just switched back to 2.0 before this release, to keep inline with home assistant.
🏗️ Chore
- Update .git-blame-ignore-revs (6169e65)
- Update engines (bf8634e)
- Update release workflow (51525db)
- Update settings and add npmrc (ca669fd)
♻️ Refactoring
📦 Build
- deps: Lock file maintenance (21996ee)
- deps: Lock file maintenance (468c68f)
- deps: Lock file maintenance (#137) (91033b5)
- deps: Lock file maintenance (#143) (2cb0be4)
- deps: Lock file maintenance (#147) (85524ff)
- deps: Lock file maintenance (#153) (81bd9af)
- deps: Update actions/checkout action to v4 (#156) (ee20535)
- deps: Update actions/setup-node action to v4 (#164) (960a52d)
- deps: Update all non-major dependencies (#129) (4382127)
- deps: Update all non-major dependencies (#136) (6872152)
- deps: Update all non-major dependencies (#142) (3df0907)
- deps: Update all non-major dependencies (#145) (63cb2db)
- deps: Update all non-major dependencies (#151) (56e3574)
- deps: Update all non-major dependencies (#170) (c4e6ecc)
- deps: Update dependency @types/node to v20 (#165) (af691bc)
- deps: Update dependency home-assistant-js-websocket to v9 (#166) (b9e7afb)
- deps: Update dependency husky to v9 (#176) (799b7dc)
- deps: Update dependency lint-staged to v15 (#167) (fdece9f)
- deps: Update dependency lit to v3 (#168) (df68d19)
- deps: Update dependency vite to v4.5.3 [security] (a7cc022)
- deps: Update dependency vite to v5 (#186) (7702713)
- deps: Update linters (ba9d42c)
- deps: Update linters (major) (#146) (b96a989)
- deps: Update linters (major) (#177) (ba647d5)
- deps: Update pnpm to v9 (#182) (5081130)
- Gzip generated bundle (577b677)
- Run define commands async (ec432ef)
- Target es6 for maximum compatibility with old browsers (d6a4abf)
⚙️ Continuous Integration
Full Changelog: v2.1.3...v2.2.0
2.1.3
Fixes
- feat: extract getLovelace and add backwards compatibility (f27d690)
- fix: renaming of
app-drawer-layout
->ha-drawer
in HA 2023.4 (5fd0a36) - fix: renaming of
app-drawer-layout
->ha-drawer
in HA 2023.4 (b26a30c)
Dependencies
- build(deps): update all non-major dependencies (adbf954)
- build(deps): update dependency typescript to v5 (#120) (d6fb13e)
- chore(deps): lock file maintenance (#122) (a33cc74)
- build(deps): update pnpm to v8 (#121) (3525559)
- chore(deps): lock file maintenance (f0b8003)
- build(deps): update all non-major dependencies (#117) (590de61)
Full Changelog: 2.1.2...2.1.3
2.1.2
2.1.1
2.1.0
This release contains many improvements to the projects dev-tooling, this shouldn't really be noticeable to end-users but makes it easier to keep maintaining the project. In particular, I switched from rollup
-> vite
for much faster builds.
Changes
Development updates
- fix: duplicate embedded buttons (f59a543)
- build(deps): pin dependencies (fc16587)
- feat: update github files (84995fe)
- feat: add vscode configuration (4a29b55)
- feat: add husky and lint-staged (f899e4a)
- feat: add .git-blame-ignore-revs (264f818)
- refactor: reformat and sort imports (8b31e63)
- feat: update prettier config (3f24f25)
- fix: eslint issues (65829fe)
- feat: update eslint config (7bfdfb6)
- feat: add editor config and git attributes (984e32e)
- build(deps): bump dependencies (e86646e)
- feat: update package scripts (0851da3)
- feat: build with vite instead of rollup (cf7468f)
Full Changelog: 2.0.1...2.1.0
2.0.1
This contains a patch for the missing state colours in 2023.2, this fix is not perfect, it's basically a polyfill that will convert the hex state colours into the now missing RGB colours. I'll have to find a better fix for this in the next release but that may require breaking changes.
- fix: rgb state colors removed in HA 2023.2 (29eabbf)
- feat: improve types (cb36788)
- feat: update workflows (64561a8)
Full Changelog: 2.0.0...2.0.1
2.0.0
🚨 Breaking Changes
Home Assistant 2022.12 has removed the --paper-item-icon-active-color
and replaced it with several rgb state colours. In order to support this change the --paper-item-icon-color
variable is no longer supported, and --paper-item-icon-active-color
has no value by default, buttons will now use the state colour for their entity.
Several CSS variables are however now available for styling, most importantly you should rename the following.
--paper-item-icon-color
➡--pbs-button-color
--paper-item-icon-active-color
➡--pbs-button-active-color
If you do not want to use the new state colors you can force the button to use the old active color by adding the following.
type: custom:paper-buttons-row
# on all buttons
styles:
"--pbs-button-active-color": "#fdd835"
buttons:
- entity: light.bedroom_light
# or per-button
styles:
"--pbs-button-active-color": "#fdd835"
⚡ Features
- Use RGB color from entity if available (ce1e383) (fixes #100) (fixes #46)
- Related to the changes above in addition to support for HA's built-in RGB state colors, we also now extract the
rgb_color
attribute from any entity that has it.
- Related to the changes above in addition to support for HA's built-in RGB state colors, we also now extract the
- Add CSS variable for default color (7b430b9) (fixes #82)
- Configure ripple shape, a new
ripple
option is available to switch betweennone
,circle
, andfill
. (8f6ffd1) (fixes #87) - Add support for presets. (b873a02)
- There are now built-in presets available to change the default look and feel of the buttons, this is using the
preset
config option. Currently, only themushroom
preset is available, which mimics the buttons from piitaya/lovelace-mushroom. - Presets can be configured for all buttons or per button.
- There are now built-in presets available to change the default look and feel of the buttons, this is using the
- User-defined presets. (4165d4f)
• Support defining active states (26d7b0c)- You can now configure which states the button considers active, when the button is active it has the
button-active
CSS class and uses a different set of CSS variables, this is particularly useful alongside presets.
- You can now configure which states the button considers active, when the button is active it has the
- Add data-attributes for CSS styling, see more. (7b0bfd8)
paper-button[data-state="on"] { color: red; }
Changes
- Include build information in bundle (04f7521)
Full Changelog: 1.0.1...2.0.0