mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 14:07:55 +00:00
Unit PAtch (#2134)
This commit is contained in:
parent
230ec51de5
commit
49be2ad013
@ -21,7 +21,7 @@ import "../../../components/ha-card";
|
|||||||
interface Config extends LovelaceCardConfig {
|
interface Config extends LovelaceCardConfig {
|
||||||
entity: string;
|
entity: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
unit_of_measurement?: string;
|
unit?: string;
|
||||||
min?: number;
|
min?: number;
|
||||||
max?: number;
|
max?: number;
|
||||||
severity?: object;
|
severity?: object;
|
||||||
@ -89,7 +89,7 @@ class HuiGaugeCard extends LitElement implements LovelaceCard {
|
|||||||
<div id="percent">
|
<div id="percent">
|
||||||
${stateObj.state}
|
${stateObj.state}
|
||||||
${
|
${
|
||||||
this._config.unit_of_measurement ||
|
this._config.unit ||
|
||||||
stateObj.attributes.unit_of_measurement ||
|
stateObj.attributes.unit_of_measurement ||
|
||||||
""
|
""
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user