Fix an uncaught error in ha-config-entities (#22587)

This commit is contained in:
karwosts 2024-10-29 07:24:27 -07:00 committed by GitHub
parent 9fff3adbfb
commit d175e84623
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1069,8 +1069,7 @@ ${
}
if (
changedProps.has("_entitySources") ||
(changedProps.has("hass") && !oldHass) ||
!oldHass.states[entityId]
(changedProps.has("hass") && (!oldHass || !oldHass.states[entityId]))
) {
changed = true;
}