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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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`