Skip to content

Releases: jcwillox/lovelace-paper-buttons-row

v2.3.1

04 Aug 10:53
09d134f
Compare
Choose a tag to compare

🐛 Bug Fixes

  • Only stop touch propagation when extending a row (09d134f)

🗑️ Reverts

  • Entity attribute and state formatting temporarily (194d952)

Full Changelog: v2.3.0...v2.3.1

v2.3.0

02 Aug 16:52
bf0dd0c
Compare
Choose a tag to compare

✨ 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

  • Update .git-blame-ignore-revs (fffdf00)
  • Update biome ignore (bf0dd0c)

♻️ Refactoring

📦 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

02 Aug 13:21
cd8981a
Compare
Choose a tag to compare

🐛 Bug Fixes

  • More info triggered when using extend row (cd8981a), closes #214

🏗️ Chore

♻️ Refactoring

  • Replace eslint with biome (c119669)

📦 Build

Full Changelog: v2.2.0...v2.2.1

v2.2.0

27 Jul 17:06
51525db
Compare
Choose a tag to compare

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

  • Reformat with prettier v3 (6051ff1)
  • Use default prettier config (1b5fa9a)

📦 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

10 Apr 10:44
f27d690
Compare
Choose a tag to compare

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

14 Feb 01:23
3cd4506
Compare
Choose a tag to compare
  • feat: use state-active-color fallback when state is on (3cd4506)
  • feat: add fallback color (9b74ee8)
  • feat: configure renovate (#115) (f5e58e3)

Full Changelog: 2.1.1...2.1.2

2.1.1

13 Feb 12:48
1996daf
Compare
Choose a tag to compare
  • fix: missing state field (eca77ed)
  • fix: include vite.config.ts in tsconfig.json (de898f7)
  • chore: drop unnecessary step from workflow (1996daf)

Full Changelog: 2.1.0...2.1.1

2.1.0

13 Feb 00:43
f59a543
Compare
Choose a tag to compare

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

  • fix: missing state default color (584ddd6)
  • chore: bump LICENSE to 2023 (552e8b1)
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

12 Feb 11:38
29eabbf
Compare
Choose a tag to compare

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

13 Dec 13:19
f60e6a3
Compare
Choose a tag to compare

🚨 Breaking Changes

  • Support RGB state color CSS variables (5d922a8) (fixes #108)

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.
  • Add CSS variable for default color (7b430b9) (fixes #82)
  • Configure ripple shape, a new ripple option is available to switch between none, circle, and fill. (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 the mushroom preset is available, which mimics the buttons from piitaya/lovelace-mushroom.
    • Presets can be configured for all buttons or per button.
  • 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.
  • 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