mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Avoid update call in entity state write if there is no customize data (#116296)
This commit is contained in:
parent
b94b93cc63
commit
eea66921bb
@ -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…
x
Reference in New Issue
Block a user