Only load the device entry when it changes in the base entity (#95801)

This commit is contained in:
J. Nick Koston 2023-07-10 03:17:35 -10:00 committed by GitHub
parent 3cc66c8318
commit 039a3bb6e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 12 deletions

View file

@ -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