From 3bee5c8cd4dae2bf0c4158c8a769ff87d48c9c1f Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 7 Jan 2026 15:39:58 +0100 Subject: [PATCH] Remove ha-combo-box-textfield (#28841) --- src/components/ha-combo-box-textfield.ts | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 src/components/ha-combo-box-textfield.ts diff --git a/src/components/ha-combo-box-textfield.ts b/src/components/ha-combo-box-textfield.ts deleted file mode 100644 index 3439c7d76b..0000000000 --- a/src/components/ha-combo-box-textfield.ts +++ /dev/null @@ -1,24 +0,0 @@ -import type { PropertyValues } from "lit"; -import { customElement, property } from "lit/decorators"; -import { HaTextField } from "./ha-textfield"; - -@customElement("ha-combo-box-textfield") -export class HaComboBoxTextField extends HaTextField { - @property({ type: Boolean, attribute: "force-blank-value" }) - public forceBlankValue = false; - - protected willUpdate(changedProps: PropertyValues): void { - super.willUpdate(changedProps); - if (changedProps.has("value") || changedProps.has("forceBlankValue")) { - if (this.forceBlankValue && this.value) { - this.value = ""; - } - } - } -} - -declare global { - interface HTMLElementTagNameMap { - "ha-combo-box-textfield": HaComboBoxTextField; - } -}