mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-31 13:07:49 +00:00
Show alarm's friendly_name if set (#3565)
Closes https://github.com/home-assistant/home-assistant-polymer/issues/3459
This commit is contained in:
parent
6259e45128
commit
c3e29e359a
@ -114,7 +114,11 @@ class HuiAlarmPanelCard extends LitElement implements LovelaceCard {
|
||||
}
|
||||
|
||||
return html`
|
||||
<ha-card .header="${this._config.name || this._label(stateObj.state)}">
|
||||
<ha-card
|
||||
.header="${this._config.name ||
|
||||
stateObj.attributes.friendly_name ||
|
||||
this._label(stateObj.state)}"
|
||||
>
|
||||
<ha-label-badge
|
||||
class="${classMap({ [stateObj.state]: true })}"
|
||||
.icon="${ICONS[stateObj.state] || "hass:shield-outline"}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user