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();
|
||||
const newValue = ev.detail.value;
|
||||
|
||||
if (newValue.startsWith(CREATE_ID)) {
|
||||
if (newValue && newValue.startsWith(CREATE_ID)) {
|
||||
const domain = newValue.substring(CREATE_ID.length);
|
||||
showHelperDetailDialog(this, {
|
||||
domain,
|
||||
|
|
Loading…
Reference in New Issue