Default card name to friendly name (#27696)

Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
Paul Bottein
2025-10-29 14:41:45 +01:00
committed by GitHub
parent 6052745ca0
commit 76772d1098
19 changed files with 50 additions and 88 deletions

View File

@@ -312,7 +312,7 @@ export class HaEntityNamePicker extends LitElement {
private _toValue = memoizeOne(
(items: EntityNameItem[]): typeof this.value => {
if (items.length === 0) {
return "";
return undefined;
}
if (items.length === 1) {
const item = items[0];