From 60e07075bccf40db92c73aa186b689d5744b7f49 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Mon, 29 Sep 2025 21:05:17 +0200 Subject: [PATCH] Refactor ha-config-labels to use `styleMap` (#27248) --- src/panels/config/labels/ha-config-labels.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/panels/config/labels/ha-config-labels.ts b/src/panels/config/labels/ha-config-labels.ts index 0f6bfdc527..dbc54a0a8e 100644 --- a/src/panels/config/labels/ha-config-labels.ts +++ b/src/panels/config/labels/ha-config-labels.ts @@ -10,6 +10,7 @@ import type { PropertyValues } from "lit"; import { LitElement, html, nothing } from "lit"; import { customElement, property, state } from "lit/decorators"; import memoizeOne from "memoize-one"; +import { styleMap } from "lit/directives/style-map"; import { computeCssColor } from "../../../common/color/compute-color"; import { formatShortDateTime } from "../../../common/datetime/format_date_time"; import { storage } from "../../../common/decorators/storage"; @@ -104,13 +105,14 @@ export class HaConfigLabels extends LitElement { template: (label) => label.color ? html`
` : nothing, },