From 173cd8126cb8ee66f41be5ed8298aa2a27444ea1 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 2 Jul 2018 16:39:23 -0400 Subject: [PATCH] Picture Entity to use name instead of titles (#1388) Entities have names, states have titles. --- src/panels/lovelace/cards/hui-picture-entity-card.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panels/lovelace/cards/hui-picture-entity-card.js b/src/panels/lovelace/cards/hui-picture-entity-card.js index 817c95bf6c..1acdce20b0 100644 --- a/src/panels/lovelace/cards/hui-picture-entity-card.js +++ b/src/panels/lovelace/cards/hui-picture-entity-card.js @@ -55,7 +55,7 @@ class HuiPictureEntityCard extends LocalizeMixin(PolymerElement) { entity="[[_config.entity]]" >
-
+
@@ -101,7 +101,7 @@ class HuiPictureEntityCard extends LocalizeMixin(PolymerElement) { _updateState(hass, entityId, config) { const state = entityId in hass.states ? hass.states[entityId].state : UNAVAILABLE; - this.$.title.innerText = config.title || (state === UNAVAILABLE ? + this.$.name.innerText = config.name || (state === UNAVAILABLE ? entityId : computeStateName(hass.states[entityId])); this.$.state.innerText = state === UNAVAILABLE ? UNAVAILABLE : this._computeState(hass.states[entityId]);