From 67e3eeb45efee04c4708cbfe115d60abc57870fe Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Fri, 13 Feb 2026 16:24:40 +0100 Subject: [PATCH] Fix custom value in picker with sections (#29593) --- src/components/ha-picker-combo-box.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/components/ha-picker-combo-box.ts b/src/components/ha-picker-combo-box.ts index 40c7e42fca..c52040dda4 100644 --- a/src/components/ha-picker-combo-box.ts +++ b/src/components/ha-picker-combo-box.ts @@ -362,6 +362,18 @@ export class HaPickerComboBox extends ScrollableFadeMixin(LitElement) { const additionalItems = this._getAdditionalItems(); items.push(...additionalItems); + if (this.allowCustomValue && this._search) { + items.push({ + id: this._search, + primary: + this.customValueLabel ?? + this.hass?.localize("ui.components.combo-box.add_custom_item") ?? + "Add custom item", + secondary: `"${this._search}"`, + icon_path: mdiPlus, + }); + } + if (this.mode === "dialog") { items.push({ id: PADDING_ID, primary: "" }); // padding for safe area inset }