mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-30 12:46:35 +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-click="${this._handleClick}"
|
||||||
@ha-hold="${this._handleHold}"
|
@ha-hold="${this._handleHold}"
|
||||||
.longPress="${longPress()}"
|
.longPress="${longPress()}"
|
||||||
|
.overrideIcon=${this._config.icon}
|
||||||
></state-badge>
|
></state-badge>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,7 @@ export interface StateIconElementConfig extends LovelaceElementConfig {
|
|||||||
entity: string;
|
entity: string;
|
||||||
tap_action?: ActionConfig;
|
tap_action?: ActionConfig;
|
||||||
hold_action?: ActionConfig;
|
hold_action?: ActionConfig;
|
||||||
|
icon?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface StateLabelElementConfig extends LovelaceElementConfig {
|
export interface StateLabelElementConfig extends LovelaceElementConfig {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user