Skip to content

Commit

Permalink
Use ha-formfield in ha-form-boolean (#23737)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbede authored Jan 14, 2025
1 parent 8bc78ba commit e6cc920
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ha-form/ha-form-boolean.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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 {
Expand All @@ -33,7 +33,7 @@ export class HaFormBoolean extends LitElement implements HaFormElement {

protected render(): TemplateResult {
return html`
<mwc-formfield .label=${this.label}>
<ha-formfield .label=${this.label}>
<ha-checkbox
.checked=${this.data}
.disabled=${this.disabled}
Expand All @@ -45,7 +45,7 @@ export class HaFormBoolean extends LitElement implements HaFormElement {
? html`<p class="secondary">${this.helper}</p>`
: nothing}
</span>
</mwc-formfield>
</ha-formfield>
`;
}

Expand Down

0 comments on commit e6cc920

Please sign in to comment.