Skip to content

Releases: jcwillox/lovelace-paper-buttons-row

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

1.0.1

28 May 08:29
Compare
Choose a tag to compare
  • Fix embedded button placement for 2022.6.0 (b14597d)
  • Add additional examples (0a4535a)

Full Changelog: 1.0.0...1.0.1

1.0.0

08 Jan 03:13
Compare
Choose a tag to compare

This is a rather big release, the entire codebase has been converted to Typescript which should help considerably with avoiding bugs and generally with maintaining the project. I've tried to minimise any breaking changes the plugin should work the same as before or better aside from the breaking changes listed below.

🚨 Breaking Changes

  • Rework state_icons to use templated state value (fixes #51) (28d6f24)
    • state_icons was incorrectly using the entities state instead of the configured state template, state_styles and state_text were using the correct value.
    • If you were not using state templating then nothing will change.
  • Center button content by default (9087337)
    • Buttons now have justify-content: center by default, this might affect your buttons that expected the content to be aligned to flex-start. I had quite a few people asking how to center the text/content and looking at my own buttons I used center a lot more than flex-start so I decided it was better to change the default. To fix any affected buttons update your config to include the following. (closes #29)
      styles:
        button:
          justify-content: flex-start
  • Rename style option to styles (f671d9f)
    • This isn't technically a breaking change as style will still work, but styles is the preferred keyword now to improve consistency for button-card users.
  • Deprecate align_icon and align_icons (2214395)
    • They still work but will be removed in a future version, use the layout option instead.

⚡ New Features

  • Add support for animations (closes #59)
  • Add built-in animations for blink and rotating (d0e36aa) (closes #59)
  • Add global styles and extra_styles support (2ce78d1) (closes #58, #59, #31)
  • Add support for service call targets by @ristomatti in #68 (5ab6123)
  • Show more-info by default for tap action of non-toggleable entities (fd766c9)
  • Show toast messages for invalid actions (429465a)
  • Add hide_state and hide_badge options for extended rows (33a7261)

Changes

  • Add CI and release workflows (e7d12a2)
  • Refactor style handling and switch to styleMap (a49aeee)
  • The Great Typescript Migration (9884f08)
    • This fixes a handful of issues in the code and I've also started using custom-card-helpers which has one of the main benefits of better icon extraction for states and more domains (fixes #45).

Full Changelog: 0.6.2...1.0.0

0.6.2

14 Dec 10:18
Compare
Choose a tag to compare
  • Use more robust method for inserting buttons into entity rows (a71f76d) (fixes #67)