mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Fix entity picker delete entity (#20542)
This commit is contained in:
parent
fbef0b0186
commit
af37d57779
@ -409,7 +409,7 @@ export class HaEntityPicker extends LitElement {
|
|||||||
ev.stopPropagation();
|
ev.stopPropagation();
|
||||||
const newValue = ev.detail.value;
|
const newValue = ev.detail.value;
|
||||||
|
|
||||||
if (newValue.startsWith(CREATE_ID)) {
|
if (newValue && newValue.startsWith(CREATE_ID)) {
|
||||||
const domain = newValue.substring(CREATE_ID.length);
|
const domain = newValue.substring(CREATE_ID.length);
|
||||||
showHelperDetailDialog(this, {
|
showHelperDetailDialog(this, {
|
||||||
domain,
|
domain,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user