Skip to content

fix: computeUom() for attribute & empty unit#1236

Merged
akloeckner merged 3 commits into
kalkih:devfrom
ildar170975:attribute-uom
Apr 29, 2025
Merged

fix: computeUom() for attribute & empty unit#1236
akloeckner merged 3 commits into
kalkih:devfrom
ildar170975:attribute-uom

Conversation

@ildar170975

@ildar170975 ildar170975 commented Apr 29, 2025

Copy link
Copy Markdown
Collaborator

Two issues are fixed:

  1. When an attribute option is defined & no unit is set - ignore unit_of_measurement.

Entity:
image

Before:
image

After:
image

Test card:

type: custom:mini-graph-card
entities:
  - entity: sensor.carbon_dioxide
    attribute: battery_level

Actually, HA frontend has a support of uoms for attributes; this hopefully will be implemented in mini-graph-card in future.

  1. When an empty unit is defined - a default uom is still used:
    Before:
    image

After:
image

Test cards:

      - type: custom:mini-graph-card
        name: empty for entity
        entities:
          - entity: sensor.carbon_dioxide
            unit: ''

      - type: custom:mini-graph-card
        name: empty for card
        entities:
          - entity: sensor.carbon_dioxide
        unit: ''

@ildar170975
ildar170975 marked this pull request as ready for review April 29, 2025 02:40
@ildar170975
ildar170975 marked this pull request as draft April 29, 2025 04:39
@ildar170975 ildar170975 changed the title fix: computeUom() for attribute fix: computeUom() for attribute & empty unit Apr 29, 2025
@ildar170975
ildar170975 marked this pull request as ready for review April 29, 2025 05:00

@akloeckner akloeckner left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be a perfect use case for the Nullish_coalescing operator. But as long as we're not on the most recent JavaScript version, we can't use it... 🤷

@akloeckner
akloeckner merged commit 436b9a9 into kalkih:dev Apr 29, 2025
@ildar170975

Copy link
Copy Markdown
Collaborator Author

This would be a perfect use case for the Nullish_coalescing operator.

Also wanted to use it!!!! But it is supported in TS, not in some JS versions.

@ildar170975
ildar170975 deleted the attribute-uom branch April 29, 2025 13:30
@akloeckner

Copy link
Copy Markdown
Collaborator

We could bump the ECMA script version used in Babel to something more recent. And then the operator would be there. I have tried that, but it will require updating lots of dependencies. Which is also a step we should go at some point in time. But it failed so badly on me, that I gave up for now.

@ildar170975

Copy link
Copy Markdown
Collaborator Author

will require updating lots of dependencies

Agree, we need to do it. I see some people do it regularly... Have no knowledge to do it myself, unfortunately... Is there any automatic process for that?

@akloeckner

Copy link
Copy Markdown
Collaborator

automatic process

I think so, but I have never used it myself.

I guess, the first huge step would be to catch up manually. From there on, the changes will be less.

However, my being inactive here recently tells me to not take on too much of a challenge, currently...

github-actions Bot pushed a commit that referenced this pull request Apr 29, 2025
# [0.13.0-dev.3](v0.13.0-dev.2...v0.13.0-dev.3) (2025-04-29)

### Bug Fixes

* computeUom() for attribute & empty unit ([#1236](#1236)) ([436b9a9](436b9a9))
* padding fill ([#1238](#1238)) ([f930fa6](f930fa6))
* process absent UoM in computeLegend() ([#1237](#1237)) ([5724cfd](5724cfd))
* use a proper config in renderState() ([#1217](#1217)) ([c980460](c980460))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.13.0-dev.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

github-actions Bot pushed a commit that referenced this pull request May 29, 2025
# [0.13.0](v0.12.1...v0.13.0) (2025-05-29)

### Bug Fixes

* adapt state color to tooltip properties ([#1214](#1214)) ([1142f25](1142f25))
* computeUom() for attribute & empty unit ([#1236](#1236)) ([436b9a9](436b9a9))
* deprecated paper-item-icon-color ([#1247](#1247)) ([2e99db5](2e99db5))
* hide graph loading indicator when appropriate ([#1197](#1197)) ([d708d6a](d708d6a))
* indicator style for the 1st state ([#1105](#1105)) ([c0ad333](c0ad333))
* legend indicators respect entity attribute configuration ([#1115](#1115)) ([5fe01d1](5fe01d1))
* legend unit percent w/o whitespace ([#1191](#1191)) ([9f5cfd9](9f5cfd9))
* migrate to ha-spinner  ([#1234](#1234)) ([d68f651](d68f651))
* more intuitive min_bound_range behavior ([#1136](#1136)) ([54d9875](54d9875))
* name and icon color respect attribute choice ([#1131](#1131)) ([cbfba7a](cbfba7a))
* padding fill ([#1238](#1238)) ([f930fa6](f930fa6))
* process absent UoM in computeLegend() ([#1237](#1237)) ([5724cfd](5724cfd))
* remove unused argument from getBoundary ([#1193](#1193)) ([f5261d9](f5261d9))
* use a proper config in renderState() ([#1217](#1217)) ([c980460](c980460))
* use d3 to interpolate colors ([#1118](#1118)) ([b8676f5](b8676f5))

### Features

* add "tooltip--label" class ([#1202](#1202)) ([0d3c184](0d3c184))
* Add loader ([#1180](#1180)) ([30c5263](30c5263))
* add show_legend_state ([#1173](#1173)) ([3b1c827](3b1c827))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.13.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

github-actions Bot pushed a commit to brozikcz/mini-graph-card that referenced this pull request Jun 1, 2025
# 1.0.0 (2025-06-01)

### Bug Fixes

* adapt state color to tooltip properties ([kalkih#1214](https://github.com/brozikcz/mini-graph-card/issues/1214)) ([1142f25](1142f25))
* add first datapoint tooltip for line graph ([kalkih#882](https://github.com/brozikcz/mini-graph-card/issues/882)) ([7576fe6](7576fe6))
* allow zero tooltip ([057a395](057a395)), closes [kalkih#805](https://github.com/brozikcz/mini-graph-card/issues/805)
* cards would always assume icon_image was set ([kalkih#957](https://github.com/brozikcz/mini-graph-card/issues/957)) ([f376732](f376732))
* computeUom() for attribute & empty unit ([kalkih#1236](https://github.com/brozikcz/mini-graph-card/issues/1236)) ([436b9a9](436b9a9))
* deprecated paper-item-icon-color ([kalkih#1247](https://github.com/brozikcz/mini-graph-card/issues/1247)) ([2e99db5](2e99db5))
* display a warning if entity is not available ([kalkih#545](https://github.com/brozikcz/mini-graph-card/issues/545)) ([a334b84](a334b84)), closes [kalkih#487](https://github.com/brozikcz/mini-graph-card/issues/487)
* drop out-of-bound coords in reducer ([kalkih#881](https://github.com/brozikcz/mini-graph-card/issues/881)) ([527f005](527f005)), closes [kalkih#251](https://github.com/brozikcz/mini-graph-card/issues/251)
* Fix undefined variable introduced by [kalkih#545](https://github.com/brozikcz/mini-graph-card/issues/545) ([9e923f5](9e923f5))
* hide graph loading indicator when appropriate ([kalkih#1197](https://github.com/brozikcz/mini-graph-card/issues/1197)) ([d708d6a](d708d6a))
* icon will properly follow entity's device_class [[kalkih#484](https://github.com/brozikcz/mini-graph-card/issues/484)] ([2f9e0a7](2f9e0a7))
* indicator style for the 1st state ([kalkih#1105](https://github.com/brozikcz/mini-graph-card/issues/1105)) ([c0ad333](c0ad333))
* legend indicators respect entity attribute configuration ([kalkih#1115](https://github.com/brozikcz/mini-graph-card/issues/1115)) ([5fe01d1](5fe01d1))
* legend unit percent w/o whitespace ([kalkih#1191](https://github.com/brozikcz/mini-graph-card/issues/1191)) ([9f5cfd9](9f5cfd9))
* migrate to ha-spinner  ([kalkih#1234](https://github.com/brozikcz/mini-graph-card/issues/1234)) ([d68f651](d68f651))
* more intuitive min_bound_range behavior ([kalkih#1136](https://github.com/brozikcz/mini-graph-card/issues/1136)) ([54d9875](54d9875))
* name and icon color respect attribute choice ([kalkih#1131](https://github.com/brozikcz/mini-graph-card/issues/1131)) ([cbfba7a](cbfba7a))
* padding fill ([kalkih#1238](https://github.com/brozikcz/mini-graph-card/issues/1238)) ([f930fa6](f930fa6))
* process absent UoM in computeLegend() ([kalkih#1237](https://github.com/brozikcz/mini-graph-card/issues/1237)) ([5724cfd](5724cfd))
* remove unused argument from getBoundary ([kalkih#1193](https://github.com/brozikcz/mini-graph-card/issues/1193)) ([f5261d9](f5261d9))
* retain the last out-of-bounds state ([kalkih#961](https://github.com/brozikcz/mini-graph-card/issues/961)) ([8ebe173](8ebe173)), closes [kalkih#881](https://github.com/brozikcz/mini-graph-card/issues/881) [kalkih#960](https://github.com/brozikcz/mini-graph-card/issues/960)
* Support for `fire-dom-event` ([c29f55f](c29f55f)), closes [kalkih#563](https://github.com/brozikcz/mini-graph-card/issues/563)
* Time would sometime display 24:xx instead of 00:xx [[kalkih#536](https://github.com/brozikcz/mini-graph-card/issues/536)] ([7c7d921](7c7d921))
* tooltip interval start could be after end ([kalkih#1065](https://github.com/brozikcz/mini-graph-card/issues/1065)) ([930ee39](930ee39)), closes [kalkih#181](https://github.com/brozikcz/mini-graph-card/issues/181)
* use a proper config in renderState() ([kalkih#1217](https://github.com/brozikcz/mini-graph-card/issues/1217)) ([c980460](c980460))
* use d3 to interpolate colors ([kalkih#1118](https://github.com/brozikcz/mini-graph-card/issues/1118)) ([b8676f5](b8676f5))
* **config:** Remove entity config error [kalkih#592](https://github.com/brozikcz/mini-graph-card/issues/592) ([kalkih#593](https://github.com/brozikcz/mini-graph-card/issues/593)) ([53d923a](53d923a))
* **documentation:** enquote html color ([dbdeab8](dbdeab8)), closes [kalkih#872](https://github.com/brozikcz/mini-graph-card/issues/872)
* **log:** color_thresholds render incorectly with logaritmic on ([kalkih#542](https://github.com/brozikcz/mini-graph-card/issues/542)) ([b704885](b704885)), closes [kalkih#531](https://github.com/brozikcz/mini-graph-card/issues/531)
* **stalebot:** issues should also use exemptLabels ([4d74c1f](4d74c1f))
* **workflows:** remove invalid description field ([e755e24](e755e24))

### Features

* add "tooltip--label" class ([kalkih#1202](https://github.com/brozikcz/mini-graph-card/issues/1202)) ([0d3c184](0d3c184))
* Add loader ([kalkih#1180](https://github.com/brozikcz/mini-graph-card/issues/1180)) ([30c5263](30c5263))
* add show_legend_state ([kalkih#1173](https://github.com/brozikcz/mini-graph-card/issues/1173)) ([3b1c827](3b1c827))
* Add support of attribute tree when available ([kalkih#996](https://github.com/brozikcz/mini-graph-card/issues/996)) ([9c1c31e](9c1c31e))
* Format numbers according to selected language [[kalkih#495](https://github.com/brozikcz/mini-graph-card/issues/495) [kalkih#509](https://github.com/brozikcz/mini-graph-card/issues/509)] ([5785bd8](5785bd8))
* pull two years worth of changes into release channel ([f5fb98d](f5fb98d)), closes [kalkih#1059](https://github.com/brozikcz/mini-graph-card/issues/1059)
* **attribute:** Retrieve an attribute instead of the state ([kalkih#564](https://github.com/brozikcz/mini-graph-card/issues/564)) ([708bfde](708bfde)), closes [kalkih#411](https://github.com/brozikcz/mini-graph-card/issues/411) [kalkih#245](https://github.com/brozikcz/mini-graph-card/issues/245) [kalkih#501](https://github.com/brozikcz/mini-graph-card/issues/501)
* **graph:** Add median aggregate function ([kalkih#521](https://github.com/brozikcz/mini-graph-card/issues/521)) ([57219bd](57219bd))
* **option:** override icon with an image URL ([kalkih#789](https://github.com/brozikcz/mini-graph-card/issues/789)) ([2860a09](2860a09))
* Interpolate color threshold stops ([kalkih#596](https://github.com/brozikcz/mini-graph-card/issues/596)) ([3826c0d](3826c0d))
github-actions Bot pushed a commit to BlaDeKe/mini-graph-card that referenced this pull request Oct 16, 2025
# 1.0.0 (2025-10-16)

### Bug Fixes

* adapt state color to tooltip properties ([kalkih#1214](https://github.com/bladeke/mini-graph-card/issues/1214)) ([1142f25](1142f25))
* add first datapoint tooltip for line graph ([kalkih#882](https://github.com/bladeke/mini-graph-card/issues/882)) ([7576fe6](7576fe6))
* allow zero tooltip ([057a395](057a395)), closes [kalkih#805](https://github.com/bladeke/mini-graph-card/issues/805)
* cards would always assume icon_image was set ([kalkih#957](https://github.com/bladeke/mini-graph-card/issues/957)) ([f376732](f376732))
* changed repo in package.json to my fork ([a2b63f7](a2b63f7))
* computeUom() for attribute & empty unit ([kalkih#1236](https://github.com/bladeke/mini-graph-card/issues/1236)) ([436b9a9](436b9a9))
* deprecated paper-item-icon-color ([kalkih#1247](https://github.com/bladeke/mini-graph-card/issues/1247)) ([2e99db5](2e99db5))
* display a warning if entity is not available ([kalkih#545](https://github.com/bladeke/mini-graph-card/issues/545)) ([a334b84](a334b84)), closes [kalkih#487](https://github.com/bladeke/mini-graph-card/issues/487)
* drop out-of-bound coords in reducer ([kalkih#881](https://github.com/bladeke/mini-graph-card/issues/881)) ([527f005](527f005)), closes [kalkih#251](https://github.com/bladeke/mini-graph-card/issues/251)
* Fix undefined variable introduced by [kalkih#545](https://github.com/bladeke/mini-graph-card/issues/545) ([9e923f5](9e923f5))
* hide graph loading indicator when appropriate ([kalkih#1197](https://github.com/bladeke/mini-graph-card/issues/1197)) ([d708d6a](d708d6a))
* icon will properly follow entity's device_class [[kalkih#484](https://github.com/bladeke/mini-graph-card/issues/484)] ([2f9e0a7](2f9e0a7))
* indicator style for the 1st state ([kalkih#1105](https://github.com/bladeke/mini-graph-card/issues/1105)) ([c0ad333](c0ad333))
* legend indicators respect entity attribute configuration ([kalkih#1115](https://github.com/bladeke/mini-graph-card/issues/1115)) ([5fe01d1](5fe01d1))
* legend unit percent w/o whitespace ([kalkih#1191](https://github.com/bladeke/mini-graph-card/issues/1191)) ([9f5cfd9](9f5cfd9))
* lint errors ([63e4a60](63e4a60))
* migrate to ha-spinner  ([kalkih#1234](https://github.com/bladeke/mini-graph-card/issues/1234)) ([d68f651](d68f651))
* more intuitive min_bound_range behavior ([kalkih#1136](https://github.com/bladeke/mini-graph-card/issues/1136)) ([54d9875](54d9875))
* name and icon color respect attribute choice ([kalkih#1131](https://github.com/bladeke/mini-graph-card/issues/1131)) ([cbfba7a](cbfba7a))
* padding fill ([kalkih#1238](https://github.com/bladeke/mini-graph-card/issues/1238)) ([f930fa6](f930fa6))
* process absent UoM in computeLegend() ([kalkih#1237](https://github.com/bladeke/mini-graph-card/issues/1237)) ([5724cfd](5724cfd))
* remove unused argument from getBoundary ([kalkih#1193](https://github.com/bladeke/mini-graph-card/issues/1193)) ([f5261d9](f5261d9))
* retain the last out-of-bounds state ([kalkih#961](https://github.com/bladeke/mini-graph-card/issues/961)) ([8ebe173](8ebe173)), closes [kalkih#881](https://github.com/bladeke/mini-graph-card/issues/881) [kalkih#960](https://github.com/bladeke/mini-graph-card/issues/960)
* Support for `fire-dom-event` ([c29f55f](c29f55f)), closes [kalkih#563](https://github.com/bladeke/mini-graph-card/issues/563)
* Time would sometime display 24:xx instead of 00:xx [[kalkih#536](https://github.com/bladeke/mini-graph-card/issues/536)] ([7c7d921](7c7d921))
* tooltip interval start could be after end ([kalkih#1065](https://github.com/bladeke/mini-graph-card/issues/1065)) ([930ee39](930ee39)), closes [kalkih#181](https://github.com/bladeke/mini-graph-card/issues/181)
* use a proper config in renderState() ([kalkih#1217](https://github.com/bladeke/mini-graph-card/issues/1217)) ([c980460](c980460))
* use d3 to interpolate colors ([kalkih#1118](https://github.com/bladeke/mini-graph-card/issues/1118)) ([b8676f5](b8676f5))
* **config:** Remove entity config error [kalkih#592](https://github.com/bladeke/mini-graph-card/issues/592) ([kalkih#593](https://github.com/bladeke/mini-graph-card/issues/593)) ([53d923a](53d923a))
* **documentation:** enquote html color ([dbdeab8](dbdeab8)), closes [kalkih#872](https://github.com/bladeke/mini-graph-card/issues/872)
* **log:** color_thresholds render incorectly with logaritmic on ([kalkih#542](https://github.com/bladeke/mini-graph-card/issues/542)) ([b704885](b704885)), closes [kalkih#531](https://github.com/bladeke/mini-graph-card/issues/531)
* **stalebot:** issues should also use exemptLabels ([4d74c1f](4d74c1f))
* **workflows:** remove invalid description field ([e755e24](e755e24))

### Features

* add "tooltip--label" class ([kalkih#1202](https://github.com/bladeke/mini-graph-card/issues/1202)) ([0d3c184](0d3c184))
* Add loader ([kalkih#1180](https://github.com/bladeke/mini-graph-card/issues/1180)) ([30c5263](30c5263))
* add show_legend_state ([kalkih#1173](https://github.com/bladeke/mini-graph-card/issues/1173)) ([3b1c827](3b1c827))
* Add support of attribute tree when available ([kalkih#996](https://github.com/bladeke/mini-graph-card/issues/996)) ([9c1c31e](9c1c31e))
* added dynamic threshold color function ([8312879](8312879))
* Format numbers according to selected language [[kalkih#495](https://github.com/bladeke/mini-graph-card/issues/495) [kalkih#509](https://github.com/bladeke/mini-graph-card/issues/509)] ([5785bd8](5785bd8))
* Interpolate color threshold stops ([kalkih#596](https://github.com/bladeke/mini-graph-card/issues/596)) ([3826c0d](3826c0d))
* pull two years worth of changes into release channel ([f5fb98d](f5fb98d)), closes [kalkih#1059](https://github.com/bladeke/mini-graph-card/issues/1059)
* **attribute:** Retrieve an attribute instead of the state ([kalkih#564](https://github.com/bladeke/mini-graph-card/issues/564)) ([708bfde](708bfde)), closes [kalkih#411](https://github.com/bladeke/mini-graph-card/issues/411) [kalkih#245](https://github.com/bladeke/mini-graph-card/issues/245) [kalkih#501](https://github.com/bladeke/mini-graph-card/issues/501)
* **graph:** Add median aggregate function ([kalkih#521](https://github.com/bladeke/mini-graph-card/issues/521)) ([57219bd](57219bd))
* **option:** override icon with an image URL ([kalkih#789](https://github.com/bladeke/mini-graph-card/issues/789)) ([2860a09](2860a09))
github-actions Bot pushed a commit to wbu/mini-graph-card that referenced this pull request Nov 15, 2025
# 1.0.0 (2025-11-15)

### Bug Fixes

* adapt state color to tooltip properties ([kalkih#1214](https://github.com/wbu/mini-graph-card/issues/1214)) ([1142f25](1142f25))
* add first datapoint tooltip for line graph ([kalkih#882](https://github.com/wbu/mini-graph-card/issues/882)) ([7576fe6](7576fe6))
* allow zero tooltip ([057a395](057a395)), closes [kalkih#805](https://github.com/wbu/mini-graph-card/issues/805)
* cards would always assume icon_image was set ([kalkih#957](https://github.com/wbu/mini-graph-card/issues/957)) ([f376732](f376732))
* computeUom() for attribute & empty unit ([kalkih#1236](https://github.com/wbu/mini-graph-card/issues/1236)) ([436b9a9](436b9a9))
* deprecated paper-item-icon-color ([kalkih#1247](https://github.com/wbu/mini-graph-card/issues/1247)) ([2e99db5](2e99db5))
* display a warning if entity is not available ([kalkih#545](https://github.com/wbu/mini-graph-card/issues/545)) ([a334b84](a334b84)), closes [kalkih#487](https://github.com/wbu/mini-graph-card/issues/487)
* drop out-of-bound coords in reducer ([kalkih#881](https://github.com/wbu/mini-graph-card/issues/881)) ([527f005](527f005)), closes [kalkih#251](https://github.com/wbu/mini-graph-card/issues/251)
* Fix undefined variable introduced by [kalkih#545](https://github.com/wbu/mini-graph-card/issues/545) ([9e923f5](9e923f5))
* hide graph loading indicator when appropriate ([kalkih#1197](https://github.com/wbu/mini-graph-card/issues/1197)) ([d708d6a](d708d6a))
* icon will properly follow entity's device_class [[kalkih#484](https://github.com/wbu/mini-graph-card/issues/484)] ([2f9e0a7](2f9e0a7))
* indicator style for the 1st state ([kalkih#1105](https://github.com/wbu/mini-graph-card/issues/1105)) ([c0ad333](c0ad333))
* legend indicators respect entity attribute configuration ([kalkih#1115](https://github.com/wbu/mini-graph-card/issues/1115)) ([5fe01d1](5fe01d1))
* legend unit percent w/o whitespace ([kalkih#1191](https://github.com/wbu/mini-graph-card/issues/1191)) ([9f5cfd9](9f5cfd9))
* migrate to ha-spinner  ([kalkih#1234](https://github.com/wbu/mini-graph-card/issues/1234)) ([d68f651](d68f651))
* more intuitive min_bound_range behavior ([kalkih#1136](https://github.com/wbu/mini-graph-card/issues/1136)) ([54d9875](54d9875))
* name and icon color respect attribute choice ([kalkih#1131](https://github.com/wbu/mini-graph-card/issues/1131)) ([cbfba7a](cbfba7a))
* padding fill ([kalkih#1238](https://github.com/wbu/mini-graph-card/issues/1238)) ([f930fa6](f930fa6))
* process absent UoM in computeLegend() ([kalkih#1237](https://github.com/wbu/mini-graph-card/issues/1237)) ([5724cfd](5724cfd))
* remove unused argument from getBoundary ([kalkih#1193](https://github.com/wbu/mini-graph-card/issues/1193)) ([f5261d9](f5261d9))
* retain the last out-of-bounds state ([kalkih#961](https://github.com/wbu/mini-graph-card/issues/961)) ([8ebe173](8ebe173)), closes [kalkih#881](https://github.com/wbu/mini-graph-card/issues/881) [kalkih#960](https://github.com/wbu/mini-graph-card/issues/960)
* Support for `fire-dom-event` ([c29f55f](c29f55f)), closes [kalkih#563](https://github.com/wbu/mini-graph-card/issues/563)
* Time would sometime display 24:xx instead of 00:xx [[kalkih#536](https://github.com/wbu/mini-graph-card/issues/536)] ([7c7d921](7c7d921))
* tooltip interval start could be after end ([kalkih#1065](https://github.com/wbu/mini-graph-card/issues/1065)) ([930ee39](930ee39)), closes [kalkih#181](https://github.com/wbu/mini-graph-card/issues/181)
* use a proper config in renderState() ([kalkih#1217](https://github.com/wbu/mini-graph-card/issues/1217)) ([c980460](c980460))
* use d3 to interpolate colors ([kalkih#1118](https://github.com/wbu/mini-graph-card/issues/1118)) ([b8676f5](b8676f5))
* **config:** Remove entity config error [kalkih#592](https://github.com/wbu/mini-graph-card/issues/592) ([kalkih#593](https://github.com/wbu/mini-graph-card/issues/593)) ([53d923a](53d923a))
* **documentation:** enquote html color ([dbdeab8](dbdeab8)), closes [kalkih#872](https://github.com/wbu/mini-graph-card/issues/872)
* **log:** color_thresholds render incorectly with logaritmic on ([kalkih#542](https://github.com/wbu/mini-graph-card/issues/542)) ([b704885](b704885)), closes [kalkih#531](https://github.com/wbu/mini-graph-card/issues/531)
* **stalebot:** issues should also use exemptLabels ([4d74c1f](4d74c1f))
* **workflows:** remove invalid description field ([e755e24](e755e24))

### Features

* add "tooltip--label" class ([kalkih#1202](https://github.com/wbu/mini-graph-card/issues/1202)) ([0d3c184](0d3c184))
* Add loader ([kalkih#1180](https://github.com/wbu/mini-graph-card/issues/1180)) ([30c5263](30c5263))
* add show_legend_state ([kalkih#1173](https://github.com/wbu/mini-graph-card/issues/1173)) ([3b1c827](3b1c827))
* Add support of attribute tree when available ([kalkih#996](https://github.com/wbu/mini-graph-card/issues/996)) ([9c1c31e](9c1c31e))
* Format numbers according to selected language [[kalkih#495](https://github.com/wbu/mini-graph-card/issues/495) [kalkih#509](https://github.com/wbu/mini-graph-card/issues/509)] ([5785bd8](5785bd8))
* pull two years worth of changes into release channel ([f5fb98d](f5fb98d)), closes [kalkih#1059](https://github.com/wbu/mini-graph-card/issues/1059)
* **attribute:** Retrieve an attribute instead of the state ([kalkih#564](https://github.com/wbu/mini-graph-card/issues/564)) ([708bfde](708bfde)), closes [kalkih#411](https://github.com/wbu/mini-graph-card/issues/411) [kalkih#245](https://github.com/wbu/mini-graph-card/issues/245) [kalkih#501](https://github.com/wbu/mini-graph-card/issues/501)
* **graph:** Add median aggregate function ([kalkih#521](https://github.com/wbu/mini-graph-card/issues/521)) ([57219bd](57219bd))
* **option:** override icon with an image URL ([kalkih#789](https://github.com/wbu/mini-graph-card/issues/789)) ([2860a09](2860a09))
* Interpolate color threshold stops ([kalkih#596](https://github.com/wbu/mini-graph-card/issues/596)) ([3826c0d](3826c0d))
github-actions Bot pushed a commit to iiLaurens/mini-graph-card that referenced this pull request May 2, 2026
# 1.0.0 (2026-05-02)

### Bug Fixes

* adapt state color to tooltip properties ([kalkih#1214](https://github.com/iiLaurens/mini-graph-card/issues/1214)) ([1142f25](1142f25))
* add first datapoint tooltip for line graph ([kalkih#882](https://github.com/iiLaurens/mini-graph-card/issues/882)) ([7576fe6](7576fe6))
* allow zero tooltip ([057a395](057a395)), closes [kalkih#805](https://github.com/iiLaurens/mini-graph-card/issues/805)
* cards would always assume icon_image was set ([kalkih#957](https://github.com/iiLaurens/mini-graph-card/issues/957)) ([f376732](f376732))
* computeUom() for attribute & empty unit ([kalkih#1236](https://github.com/iiLaurens/mini-graph-card/issues/1236)) ([436b9a9](436b9a9))
* deprecated paper-item-icon-color ([kalkih#1247](https://github.com/iiLaurens/mini-graph-card/issues/1247)) ([2e99db5](2e99db5))
* display a warning if entity is not available ([kalkih#545](https://github.com/iiLaurens/mini-graph-card/issues/545)) ([a334b84](a334b84)), closes [kalkih#487](https://github.com/iiLaurens/mini-graph-card/issues/487)
* drop out-of-bound coords in reducer ([kalkih#881](https://github.com/iiLaurens/mini-graph-card/issues/881)) ([527f005](527f005)), closes [kalkih#251](https://github.com/iiLaurens/mini-graph-card/issues/251)
* Fix undefined variable introduced by [kalkih#545](https://github.com/iiLaurens/mini-graph-card/issues/545) ([9e923f5](9e923f5))
* hide graph loading indicator when appropriate ([kalkih#1197](https://github.com/iiLaurens/mini-graph-card/issues/1197)) ([d708d6a](d708d6a))
* icon will properly follow entity's device_class [[kalkih#484](https://github.com/iiLaurens/mini-graph-card/issues/484)] ([2f9e0a7](2f9e0a7))
* indicator style for the 1st state ([kalkih#1105](https://github.com/iiLaurens/mini-graph-card/issues/1105)) ([c0ad333](c0ad333))
* legend indicators respect entity attribute configuration ([kalkih#1115](https://github.com/iiLaurens/mini-graph-card/issues/1115)) ([5fe01d1](5fe01d1))
* legend unit percent w/o whitespace ([kalkih#1191](https://github.com/iiLaurens/mini-graph-card/issues/1191)) ([9f5cfd9](9f5cfd9))
* migrate to ha-spinner  ([kalkih#1234](https://github.com/iiLaurens/mini-graph-card/issues/1234)) ([d68f651](d68f651))
* more intuitive min_bound_range behavior ([kalkih#1136](https://github.com/iiLaurens/mini-graph-card/issues/1136)) ([54d9875](54d9875))
* name and icon color respect attribute choice ([kalkih#1131](https://github.com/iiLaurens/mini-graph-card/issues/1131)) ([cbfba7a](cbfba7a))
* padding fill ([kalkih#1238](https://github.com/iiLaurens/mini-graph-card/issues/1238)) ([f930fa6](f930fa6))
* process absent UoM in computeLegend() ([kalkih#1237](https://github.com/iiLaurens/mini-graph-card/issues/1237)) ([5724cfd](5724cfd))
* remove unused argument from getBoundary ([kalkih#1193](https://github.com/iiLaurens/mini-graph-card/issues/1193)) ([f5261d9](f5261d9))
* retain the last out-of-bounds state ([kalkih#961](https://github.com/iiLaurens/mini-graph-card/issues/961)) ([8ebe173](8ebe173)), closes [kalkih#881](https://github.com/iiLaurens/mini-graph-card/issues/881) [kalkih#960](https://github.com/iiLaurens/mini-graph-card/issues/960)
* Support for `fire-dom-event` ([c29f55f](c29f55f)), closes [kalkih#563](https://github.com/iiLaurens/mini-graph-card/issues/563)
* Time would sometime display 24:xx instead of 00:xx [[kalkih#536](https://github.com/iiLaurens/mini-graph-card/issues/536)] ([7c7d921](7c7d921))
* tooltip interval start could be after end ([kalkih#1065](https://github.com/iiLaurens/mini-graph-card/issues/1065)) ([930ee39](930ee39)), closes [kalkih#181](https://github.com/iiLaurens/mini-graph-card/issues/181)
* update repository URL in package.json to point to fork ([0400cc2](0400cc2))
* use a proper config in renderState() ([kalkih#1217](https://github.com/iiLaurens/mini-graph-card/issues/1217)) ([c980460](c980460))
* use d3 to interpolate colors ([kalkih#1118](https://github.com/iiLaurens/mini-graph-card/issues/1118)) ([b8676f5](b8676f5))
* **config:** Remove entity config error [kalkih#592](https://github.com/iiLaurens/mini-graph-card/issues/592) ([kalkih#593](https://github.com/iiLaurens/mini-graph-card/issues/593)) ([53d923a](53d923a))
* **documentation:** enquote html color ([dbdeab8](dbdeab8)), closes [kalkih#872](https://github.com/iiLaurens/mini-graph-card/issues/872)
* **log:** color_thresholds render incorectly with logaritmic on ([kalkih#542](https://github.com/iiLaurens/mini-graph-card/issues/542)) ([b704885](b704885)), closes [kalkih#531](https://github.com/iiLaurens/mini-graph-card/issues/531)
* **stalebot:** issues should also use exemptLabels ([4d74c1f](4d74c1f))
* **workflows:** remove invalid description field ([e755e24](e755e24))

### Features

* add "tooltip--label" class ([kalkih#1202](https://github.com/iiLaurens/mini-graph-card/issues/1202)) ([0d3c184](0d3c184))
* Add loader ([kalkih#1180](https://github.com/iiLaurens/mini-graph-card/issues/1180)) ([30c5263](30c5263))
* add show_legend_state ([kalkih#1173](https://github.com/iiLaurens/mini-graph-card/issues/1173)) ([3b1c827](3b1c827))
* add support for negative bars in bar chart ([023655f](023655f))
* Add support of attribute tree when available ([kalkih#996](https://github.com/iiLaurens/mini-graph-card/issues/996)) ([9c1c31e](9c1c31e))
* Format numbers according to selected language [[kalkih#495](https://github.com/iiLaurens/mini-graph-card/issues/495) [kalkih#509](https://github.com/iiLaurens/mini-graph-card/issues/509)] ([5785bd8](5785bd8))
* Interpolate color threshold stops ([kalkih#596](https://github.com/iiLaurens/mini-graph-card/issues/596)) ([3826c0d](3826c0d))
* pull two years worth of changes into release channel ([f5fb98d](f5fb98d)), closes [kalkih#1059](https://github.com/iiLaurens/mini-graph-card/issues/1059)
* **attribute:** Retrieve an attribute instead of the state ([kalkih#564](https://github.com/iiLaurens/mini-graph-card/issues/564)) ([708bfde](708bfde)), closes [kalkih#411](https://github.com/iiLaurens/mini-graph-card/issues/411) [kalkih#245](https://github.com/iiLaurens/mini-graph-card/issues/245) [kalkih#501](https://github.com/iiLaurens/mini-graph-card/issues/501)
* **graph:** Add median aggregate function ([kalkih#521](https://github.com/iiLaurens/mini-graph-card/issues/521)) ([57219bd](57219bd))
* **option:** override icon with an image URL ([kalkih#789](https://github.com/iiLaurens/mini-graph-card/issues/789)) ([2860a09](2860a09))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants