Allow changing state-icon element icon (#3122)

This commit is contained in:
Thomas Lovén 2019-04-27 19:37:57 +02:00 committed by Paulus Schoutsen
parent 44df0f698c
commit d66cf3f787
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ export class HuiStateIconElement extends LitElement implements LovelaceElement {
@ha-click="${this._handleClick}"
@ha-hold="${this._handleHold}"
.longPress="${longPress()}"
.overrideIcon=${this._config.icon}
></state-badge>
`;
}

View File

@ -51,6 +51,7 @@ export interface StateIconElementConfig extends LovelaceElementConfig {
entity: string;
tap_action?: ActionConfig;
hold_action?: ActionConfig;
icon?: string;
}
export interface StateLabelElementConfig extends LovelaceElementConfig {