Fix object selector not displayed (#26007)

This commit is contained in:
Paul Bottein
2025-06-30 18:15:37 +02:00
committed by GitHub
parent 49099223d3
commit 948c858e78

View File

@@ -122,11 +122,7 @@ export class HaObjectSelector extends LitElement {
}
protected render() {
if (!this.selector.object) {
return nothing;
}
if (this.selector.object.fields) {
if (this.selector.object?.fields) {
if (this.selector.object.multiple) {
const items = ensureArray(this.value ?? []);
return html`