github maxwroc/battery-state-card v4.0.0
v4.0.0 Battery notes integration

11 hours ago

πŸ’₯ Breaking changes

  • The display entity data field has been renamed to entity. If you use display. prefix in filters (e.g. name: "display.platform"), update them to use entity. (e.g. name: "entity.platform"). The same applies to KString references like {display.name} β€” use {entity.name} instead.
  • The KString between function now uses an inclusive range. Previously between(2,6,30) would match values strictly between 2 and 6 (exclusive); now it matches values from 2 to 6 inclusive. If you relied on the exclusive behavior, adjust your thresholds accordingly.
  • The {charging} entity data field is now an object with text (string) and is_active (boolean) properties. If you use {charging} in secondary_info or other KStrings, update it to {charging.text}. You can also use {charging.is_active} to access the boolean charging state.
  • Default configuration is now shallow-merged with your custom config. Previously, specifying any custom config would discard all defaults. Now, default values (e.g. sort, filter, collapse, bulk_rename, colors, secondary_info) are applied for any properties you don't explicitly set. If you relied on the old behavior where defaults were fully replaced, you may need to explicitly override specific properties (e.g. filter: {} to disable the default filter).

πŸš€ Features

πŸ› Bug Fixes

  • Handle properly batteries hidden by Battery Notes #840 (@maxwroc)
  • Changed 'between' KString to be inclusive #838 (@maxwroc)

🧰 Maintenance

❀️ Thank you to all contributors for your bug reports, ideas, and code. You’re awesome!
If you want to show your support please
Buy me a coffee

GitHub Releases (by Release)

Don't miss a new battery-state-card release

NewReleases is sending notifications on new releases.