mirror of
https://github.com/home-assistant/frontend.git
synced 2025-08-02 05:57:54 +00:00
Add name to config (#2128)
This commit is contained in:
parent
f04f58ac88
commit
d2741af24b
@ -47,6 +47,7 @@ const modeIcons = {
|
|||||||
interface Config extends LovelaceCardConfig {
|
interface Config extends LovelaceCardConfig {
|
||||||
entity: string;
|
entity: string;
|
||||||
theme?: string;
|
theme?: string;
|
||||||
|
name?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatTemp(temps: string[]): string {
|
function formatTemp(temps: string[]): string {
|
||||||
@ -97,7 +98,8 @@ export class HuiThermostatCard extends hassLocalizeLitMixin(LitElement)
|
|||||||
<div id="root">
|
<div id="root">
|
||||||
<div id="thermostat"></div>
|
<div id="thermostat"></div>
|
||||||
<div id="tooltip">
|
<div id="tooltip">
|
||||||
<div class="title">${computeStateName(stateObj)}</div>
|
<div class="title">${this._config.name ||
|
||||||
|
computeStateName(stateObj)}</div>
|
||||||
<div class="current-temperature">
|
<div class="current-temperature">
|
||||||
<span class="current-temperature-text">
|
<span class="current-temperature-text">
|
||||||
${stateObj.attributes.current_temperature}
|
${stateObj.attributes.current_temperature}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user