From 672b939fd048dfd5948f429c29ff272e02c78ff7 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 22 Jul 2024 12:13:21 +0200 Subject: [PATCH] Fix text only and icon only badge --- src/badges/template/template-badge.ts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/badges/template/template-badge.ts b/src/badges/template/template-badge.ts index b8da20e6..e7538231 100644 --- a/src/badges/template/template-badge.ts +++ b/src/badges/template/template-badge.ts @@ -8,6 +8,7 @@ import { PropertyValues, } from "lit"; import { customElement, property, state } from "lit/decorators.js"; +import { classMap } from "lit/directives/class-map.js"; import { ifDefined } from "lit/directives/if-defined.js"; import { styleMap } from "lit/directives/style-map.js"; import { @@ -211,7 +212,10 @@ export class HuiEntityBadge extends LitElement implements LovelaceBadge { return html`