mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 23:07:09 +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.
|
# Overwrite properties that have been set in the config file.
|
||||||
if customize := hass.data.get(DATA_CUSTOMIZE):
|
if (customize := hass.data.get(DATA_CUSTOMIZE)) and (
|
||||||
attr.update(customize.get(entity_id))
|
custom := customize.get(entity_id)
|
||||||
|
):
|
||||||
|
attr.update(custom)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
self._context_set is not None
|
self._context_set is not None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user