Fix scene editor (#13123)

This commit is contained in:
Bram Kragten 2022-07-06 15:50:37 +02:00 committed by GitHub
parent 72af200190
commit e63953ecbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -637,7 +637,7 @@ export class HaSceneEditor extends SubscribeMixin(
Object.keys(config.entities).forEach((entity) => {
if (
!this._single_entities.includes(entity) &&
config.metadata![entity].entity_only
config.metadata![entity]?.entity_only
) {
this._single_entities.push(entity);
}