Only load the device entry when it changes in the base entity (#95801)
This commit is contained in:
parent
3cc66c8318
commit
039a3bb6e9
2 changed files with 16 additions and 12 deletions
|
@ -738,6 +738,8 @@ class EntityPlatform:
|
|||
)
|
||||
|
||||
entity.registry_entry = entry
|
||||
if device:
|
||||
entity.device_entry = device
|
||||
entity.entity_id = entry.entity_id
|
||||
|
||||
# We won't generate an entity ID if the platform has already set one
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue