From d175e8462391357c3fdd73a4240cdbfb47f65a5e Mon Sep 17 00:00:00 2001 From: karwosts <32912880+karwosts@users.noreply.github.com> Date: Tue, 29 Oct 2024 07:24:27 -0700 Subject: [PATCH] Fix an uncaught error in ha-config-entities (#22587) --- src/panels/config/entities/ha-config-entities.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/panels/config/entities/ha-config-entities.ts b/src/panels/config/entities/ha-config-entities.ts index e828e7b6e101..1859f5578d75 100644 --- a/src/panels/config/entities/ha-config-entities.ts +++ b/src/panels/config/entities/ha-config-entities.ts @@ -1069,8 +1069,7 @@ ${ } if ( changedProps.has("_entitySources") || - (changedProps.has("hass") && !oldHass) || - !oldHass.states[entityId] + (changedProps.has("hass") && (!oldHass || !oldHass.states[entityId])) ) { changed = true; }