mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Allow changing state-icon element icon (#3122)
This commit is contained in:
parent
44df0f698c
commit
d66cf3f787
@ -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>
|
||||
`;
|
||||
}
|
||||
|
@ -51,6 +51,7 @@ export interface StateIconElementConfig extends LovelaceElementConfig {
|
||||
entity: string;
|
||||
tap_action?: ActionConfig;
|
||||
hold_action?: ActionConfig;
|
||||
icon?: string;
|
||||
}
|
||||
|
||||
export interface StateLabelElementConfig extends LovelaceElementConfig {
|
||||
|
Loading…
x
Reference in New Issue
Block a user