Avoid update call in entity state write if there is no customize data (#116296)
This commit is contained in:
parent
b94b93cc63
commit
eea66921bb
1 changed files with 4 additions and 2 deletions
|
@ -1189,8 +1189,10 @@ class Entity(
|
|||
)
|
||||
|
||||
# Overwrite properties that have been set in the config file.
|
||||
if customize := hass.data.get(DATA_CUSTOMIZE):
|
||||
attr.update(customize.get(entity_id))
|
||||
if (customize := hass.data.get(DATA_CUSTOMIZE)) and (
|
||||
custom := customize.get(entity_id)
|
||||
):
|
||||
attr.update(custom)
|
||||
|
||||
if (
|
||||
self._context_set is not None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue