From 76255f2efb0da6b38cce144e4252745eeb095e89 Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Tue, 6 Jun 2023 12:28:07 -0700 Subject: [PATCH] Fix ha-devices-picker when changing or deleting devices (#16739) --- src/components/device/ha-devices-picker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/device/ha-devices-picker.ts b/src/components/device/ha-devices-picker.ts index 713b5b11ad..5a78c2c18e 100644 --- a/src/components/device/ha-devices-picker.ts +++ b/src/components/device/ha-devices-picker.ts @@ -111,10 +111,10 @@ class HaDevicesPicker extends LitElement { event.stopPropagation(); const curValue = (event.currentTarget as any).curValue; const newValue = event.detail.value; - if (newValue === curValue || newValue !== "") { + if (newValue === curValue) { return; } - if (newValue === "") { + if (newValue === undefined) { this._updateDevices( this._currentDevices.filter((dev) => dev !== curValue) );