fix: computeUom() for attribute & empty unit#1236
Conversation
akloeckner
left a comment
There was a problem hiding this comment.
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... 🤷
Also wanted to use it!!!! But it is supported in TS, not in some JS versions. |
|
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. |
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? |
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... |
# [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))
|
🎉 This PR is included in version 0.13.0-dev.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [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))
|
🎉 This PR is included in version 0.13.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# 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))
# 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))
# 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))
# 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))
Two issues are fixed:
attributeoption is defined & nounitis set - ignoreunit_of_measurement.Entity:

Before:

After:

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

Test cards: