diff --git a/src/panels/lovelace/cards/hui-light-card.ts b/src/panels/lovelace/cards/hui-light-card.ts index a1efbf274c..bb90cbef11 100644 --- a/src/panels/lovelace/cards/hui-light-card.ts +++ b/src/panels/lovelace/cards/hui-light-card.ts @@ -107,7 +107,7 @@ export class HuiLightCard extends LitElement implements LovelaceCard { diff --git a/src/panels/lovelace/editor/config-elements/hui-light-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-light-card-editor.ts index 8f1eba6876..df776a158b 100644 --- a/src/panels/lovelace/editor/config-elements/hui-light-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-light-card-editor.ts @@ -23,6 +23,7 @@ const cardConfigStruct = struct({ name: "string?", entity: "string?", theme: "string?", + icon: "string?", }); @customElement("hui-light-card-editor") @@ -49,6 +50,10 @@ export class HuiLightCardEditor extends LitElement return this._config!.entity || ""; } + get _icon(): string { + return this._config!.icon || ""; + } + protected render(): TemplateResult | void { if (!this.hass) { return html``; @@ -57,28 +62,37 @@ export class HuiLightCardEditor extends LitElement return html` ${configElementStyle}
- +
- - + +
+ +
`; } diff --git a/src/translations/en.json b/src/translations/en.json index b1c4c24edd..db4e7a8dac 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1110,6 +1110,9 @@ "para_no_id": "This element doesn't have an ID. Please add an ID to this element in 'ui-lovelace.yaml'.", "para_migrate": "Home Assistant can add ID's to all your cards and views automatically for you by pressing the 'Migrate config' button.", "migrate": "Migrate config" + }, + "theme": { + "theme": "Theme (Optional)" } }, "warning": {