From 9140a9677c209d171f0a76eb6fc72206db24001a Mon Sep 17 00:00:00 2001 From: rosskyl Date: Fri, 12 Nov 2021 09:40:55 -0600 Subject: [PATCH 1/3] Update ha-icon-button to display icons Add ha-icon to ha-icon-button to fix a breaking change from https://github.com/home-assistant/frontend/issues/10521 --- src/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.js b/src/index.js index 07a780c..59d9214 100644 --- a/src/index.js +++ b/src/index.js @@ -338,17 +338,17 @@ class BannerCard extends LitElement { icon="mdi:skip-previous" role="button" @click=${this._service(domain, "media_previous_track", entity)} - > + > + > + > @@ -404,18 +404,18 @@ class BannerCard extends LitElement { icon="hass:arrow-up" role="button" @click=${this._service("cover", "open_cover", entity)} - > + > + > + > `; From d55bf76e35214a0eb58a4ad09a19270eda0f50d2 Mon Sep 17 00:00:00 2001 From: Kyle Date: Fri, 12 Nov 2021 10:30:10 -0600 Subject: [PATCH 2/3] Fix disabled icons --- src/index.js | 18 ++++++++++++------ src/styles.js | 2 +- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/index.js b/src/index.js index 59d9214..77c8720 100644 --- a/src/index.js +++ b/src/index.js @@ -338,17 +338,20 @@ class BannerCard extends LitElement { icon="mdi:skip-previous" role="button" @click=${this._service(domain, "media_previous_track", entity)} - > + > + > + > @@ -404,18 +407,21 @@ class BannerCard extends LitElement { icon="hass:arrow-up" role="button" @click=${this._service("cover", "open_cover", entity)} - > + > + > + > `; diff --git a/src/styles.js b/src/styles.js index 275db38..ef0dece 100644 --- a/src/styles.js +++ b/src/styles.js @@ -130,7 +130,7 @@ export default css` width: 90%; } - .entity-value ha-icon { + .entity-value ha-icon:not([disabled]) { color: white; } From cce446797ae19b828af8dd7fb98fe6d3242110a6 Mon Sep 17 00:00:00 2001 From: Kyle Date: Fri, 8 Apr 2022 09:08:52 -0500 Subject: [PATCH 3/3] Update mwc-switch to ha-switch --- src/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index 77c8720..ea1596d 100644 --- a/src/index.js +++ b/src/index.js @@ -301,9 +301,9 @@ class BannerCard extends LitElement { const htmlContent = this.renderValue( { ...data, value, unit, click: action }, () => html` - + ${value} ${unit} - + ` ); return html` @@ -384,12 +384,12 @@ class BannerCard extends LitElement {
${entityName(name, onClick)} - - +
`;