From e6cc92078165075f8641c950f038a154749a7be2 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Tue, 14 Jan 2025 21:11:55 +0100 Subject: [PATCH] Use `ha-formfield` in `ha-form-boolean` (#23737) --- src/components/ha-form/ha-form-boolean.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ha-form/ha-form-boolean.ts b/src/components/ha-form/ha-form-boolean.ts index ad06fded0cea..494b9389c74e 100644 --- a/src/components/ha-form/ha-form-boolean.ts +++ b/src/components/ha-form/ha-form-boolean.ts @@ -1,4 +1,3 @@ -import "@material/mwc-formfield"; import type { TemplateResult } from "lit"; import { css, html, LitElement, nothing } from "lit"; import { customElement, property, query } from "lit/decorators"; @@ -10,6 +9,7 @@ import type { } from "./types"; import type { HaCheckbox } from "../ha-checkbox"; import "../ha-checkbox"; +import "../ha-formfield"; @customElement("ha-form-boolean") export class HaFormBoolean extends LitElement implements HaFormElement { @@ -33,7 +33,7 @@ export class HaFormBoolean extends LitElement implements HaFormElement { protected render(): TemplateResult { return html` - + ${this.helper}

` : nothing} -
+ `; }