From d2741af24b39e0d5fe8a0c59de93e9a9c99b8c1a Mon Sep 17 00:00:00 2001 From: Zack Arnett Date: Tue, 27 Nov 2018 14:26:56 -0500 Subject: [PATCH] Add name to config (#2128) --- src/panels/lovelace/cards/hui-thermostat-card.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/panels/lovelace/cards/hui-thermostat-card.ts b/src/panels/lovelace/cards/hui-thermostat-card.ts index c2f5f5fab4..792f68134f 100644 --- a/src/panels/lovelace/cards/hui-thermostat-card.ts +++ b/src/panels/lovelace/cards/hui-thermostat-card.ts @@ -47,6 +47,7 @@ const modeIcons = { interface Config extends LovelaceCardConfig { entity: string; theme?: string; + name?: string; } function formatTemp(temps: string[]): string { @@ -97,7 +98,8 @@ export class HuiThermostatCard extends hassLocalizeLitMixin(LitElement)
-
${computeStateName(stateObj)}
+
${this._config.name || + computeStateName(stateObj)}
${stateObj.attributes.current_temperature}