From 9d16dfb31e4c424aef8825b8b41a4197407fbd11 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 22 Jan 2024 11:41:45 +0100 Subject: [PATCH] Add support icon in 2024.2 --- .../alarm-control-panel-card/alarm-control-panel-card.ts | 7 ++++++- src/cards/chips-card/chips/action-chip.ts | 6 +++++- src/cards/chips-card/chips/alarm-control-panel-chip.ts | 2 ++ src/cards/chips-card/chips/back-chip.ts | 2 +- src/cards/chips-card/chips/entity-chip.ts | 2 ++ src/cards/chips-card/chips/light-chip.ts | 2 ++ src/cards/chips-card/chips/menu-chip.ts | 2 +- src/cards/chips-card/chips/template-chip.ts | 6 +++++- src/cards/climate-card/climate-card.ts | 7 ++++++- src/cards/cover-card/cover-card.ts | 7 ++++++- src/cards/entity-card/entity-card.ts | 7 ++++++- src/cards/fan-card/fan-card.ts | 7 ++++++- src/cards/light-card/light-card.ts | 7 ++++++- src/cards/lock-card/lock-card.ts | 7 ++++++- src/cards/number-card/number-card.ts | 7 ++++++- src/cards/select-card/select-card.ts | 7 ++++++- src/cards/template-card/template-card.ts | 2 +- src/cards/update-card/update-card.ts | 7 ++++++- src/cards/vacuum-card/vacuum-card.ts | 7 ++++++- src/utils/base-card.ts | 7 ++++++- 20 files changed, 91 insertions(+), 17 deletions(-) diff --git a/src/cards/alarm-control-panel-card/alarm-control-panel-card.ts b/src/cards/alarm-control-panel-card/alarm-control-panel-card.ts index 667c4c1e3..9e5eaf83a 100644 --- a/src/cards/alarm-control-panel-card/alarm-control-panel-card.ts +++ b/src/cards/alarm-control-panel-card/alarm-control-panel-card.ts @@ -269,7 +269,12 @@ export class AlarmControlPanelCard extends MushroomBaseCard implements LovelaceC style=${styleMap(iconStyle)} class=${classMap({ pulse: shapePulse })} > - + `; } diff --git a/src/cards/chips-card/chips/action-chip.ts b/src/cards/chips-card/chips/action-chip.ts index 140303dcf..cfb614222 100644 --- a/src/cards/chips-card/chips/action-chip.ts +++ b/src/cards/chips-card/chips/action-chip.ts @@ -71,7 +71,11 @@ export class ActionChip extends LitElement implements LovelaceChip { hasDoubleClick: hasAction(this._config.double_tap_action), })} > - + `; } diff --git a/src/cards/chips-card/chips/alarm-control-panel-chip.ts b/src/cards/chips-card/chips/alarm-control-panel-chip.ts index 0e8537261..9c9b42f5b 100644 --- a/src/cards/chips-card/chips/alarm-control-panel-chip.ts +++ b/src/cards/chips-card/chips/alarm-control-panel-chip.ts @@ -113,6 +113,8 @@ export class AlarmControlPanelChip extends LitElement implements LovelaceChip { })} > - + `; } diff --git a/src/cards/chips-card/chips/entity-chip.ts b/src/cards/chips-card/chips/entity-chip.ts index 5db53f8b6..92dbbd181 100644 --- a/src/cards/chips-card/chips/entity-chip.ts +++ b/src/cards/chips-card/chips/entity-chip.ts @@ -122,6 +122,8 @@ export class EntityChip extends LitElement implements LovelaceChip { } return html` - + `; } diff --git a/src/cards/chips-card/chips/template-chip.ts b/src/cards/chips-card/chips/template-chip.ts index 051f7206b..7c63f6abb 100644 --- a/src/cards/chips-card/chips/template-chip.ts +++ b/src/cards/chips-card/chips/template-chip.ts @@ -141,7 +141,11 @@ export class TemplateChip extends LitElement implements LovelaceChip { const iconRgbColor = computeRgbColor(iconColor); iconStyle["--color"] = `rgb(${iconRgbColor})`; } - return html``; + return html``; } protected renderContent(content: string): TemplateResult { diff --git a/src/cards/climate-card/climate-card.ts b/src/cards/climate-card/climate-card.ts index d2bb3ebf2..802c712e1 100644 --- a/src/cards/climate-card/climate-card.ts +++ b/src/cards/climate-card/climate-card.ts @@ -203,7 +203,12 @@ export class ClimateCard extends MushroomBaseCard implements LovelaceCard { return html` - + `; } diff --git a/src/cards/cover-card/cover-card.ts b/src/cards/cover-card/cover-card.ts index 9cde17c92..1b6af1eb5 100644 --- a/src/cards/cover-card/cover-card.ts +++ b/src/cards/cover-card/cover-card.ts @@ -217,7 +217,12 @@ export class CoverCard extends MushroomBaseCard implements LovelaceCard { return html` - `; } diff --git a/src/cards/entity-card/entity-card.ts b/src/cards/entity-card/entity-card.ts index eccb8b288..81dd1b609 100644 --- a/src/cards/entity-card/entity-card.ts +++ b/src/cards/entity-card/entity-card.ts @@ -124,7 +124,12 @@ export class EntityCard extends MushroomBaseCard implements LovelaceCard { } return html` - + `; } diff --git a/src/cards/fan-card/fan-card.ts b/src/cards/fan-card/fan-card.ts index 6ae3713e0..92edea9b1 100644 --- a/src/cards/fan-card/fan-card.ts +++ b/src/cards/fan-card/fan-card.ts @@ -208,7 +208,12 @@ export class FanCard extends MushroomBaseCard implements LovelaceCard { style=${styleMap(iconStyle)} .disabled=${!active} > - + `; } diff --git a/src/cards/light-card/light-card.ts b/src/cards/light-card/light-card.ts index a42050ea3..be32e66c3 100644 --- a/src/cards/light-card/light-card.ts +++ b/src/cards/light-card/light-card.ts @@ -245,7 +245,12 @@ export class LightCard extends MushroomBaseCard implements LovelaceCard { } return html` - + `; } diff --git a/src/cards/lock-card/lock-card.ts b/src/cards/lock-card/lock-card.ts index 62af13308..fc1d9ade5 100644 --- a/src/cards/lock-card/lock-card.ts +++ b/src/cards/lock-card/lock-card.ts @@ -145,7 +145,12 @@ export class LockCard extends MushroomBaseCard implements LovelaceCard { return html` - + `; } diff --git a/src/cards/number-card/number-card.ts b/src/cards/number-card/number-card.ts index 0e04483ef..a653f70e5 100644 --- a/src/cards/number-card/number-card.ts +++ b/src/cards/number-card/number-card.ts @@ -192,7 +192,12 @@ export class NumberCard extends MushroomBaseCard implements LovelaceCard { } return html` - + `; } diff --git a/src/cards/select-card/select-card.ts b/src/cards/select-card/select-card.ts index 0421a6866..416ae4abd 100644 --- a/src/cards/select-card/select-card.ts +++ b/src/cards/select-card/select-card.ts @@ -140,7 +140,12 @@ export class SelectCard extends MushroomBaseCard implements LovelaceCard { } return html` - + `; } diff --git a/src/cards/template-card/template-card.ts b/src/cards/template-card/template-card.ts index 2fe32aec5..86233c856 100644 --- a/src/cards/template-card/template-card.ts +++ b/src/cards/template-card/template-card.ts @@ -193,7 +193,7 @@ export class TemplateCard extends MushroomBaseElement implements LovelaceCard { } return html` - + `; } diff --git a/src/cards/update-card/update-card.ts b/src/cards/update-card/update-card.ts index 63d60bef1..e7b0f863f 100644 --- a/src/cards/update-card/update-card.ts +++ b/src/cards/update-card/update-card.ts @@ -152,7 +152,12 @@ export class UpdateCard extends MushroomBaseCard implements LovelaceCard { })} style=${styleMap(style)} > - + `; } diff --git a/src/cards/vacuum-card/vacuum-card.ts b/src/cards/vacuum-card/vacuum-card.ts index 3d0e51588..556d2f72c 100644 --- a/src/cards/vacuum-card/vacuum-card.ts +++ b/src/cards/vacuum-card/vacuum-card.ts @@ -141,7 +141,12 @@ export class VacuumCard extends MushroomBaseCard implements LovelaceCard { style=${styleMap({})} .disabled=${!isActive(stateObj)} > - `; } diff --git a/src/utils/base-card.ts b/src/utils/base-card.ts index 8f2a6c09a..403bd4514 100644 --- a/src/utils/base-card.ts +++ b/src/utils/base-card.ts @@ -64,7 +64,12 @@ export class MushroomBaseCard extends MushroomBaseElement { const active = isActive(stateObj); return html` - `; }