diff --git a/dist/homeassistant-lg-thinq-cards.js b/dist/homeassistant-lg-thinq-cards.js index e2838ad..7186761 100644 --- a/dist/homeassistant-lg-thinq-cards.js +++ b/dist/homeassistant-lg-thinq-cards.js @@ -1168,7 +1168,7 @@ _buildProgress() { } _renderChip(chip) { - const stateObj = this._stateObj(chip.key); + const stateObj = this._stateObj(chip.key); const value = stateObj?.state; if (value == null) { return null; @@ -1185,7 +1185,7 @@ _buildProgress() { return null; } - const label = isActive ? chip.active : chip.inactive; + const label = (isActive ? chip.active : chip.inactive); const variant = isActive ? "active" : "inactive"; const tone = chip.tone === "soft" ? "soft" : "solid"; @@ -1218,11 +1218,13 @@ _buildProgress() { if (!groups.has(group)) { groups.set(group, []); } + const stateObj = this._stateObj(detail.key); + const label = stateObj?.attributes.friendly_name ?? detail.label; groups.get(group).push( html`