mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 05:06:13 +01:00
Assign device_entry earlier in entity platform (#160767)
This commit is contained in:
@@ -864,6 +864,8 @@ class EntityPlatform:
|
||||
)
|
||||
entity.add_to_platform_abort()
|
||||
return
|
||||
|
||||
entity.device_entry = device
|
||||
else:
|
||||
device = entity.device_entry
|
||||
else:
|
||||
@@ -924,8 +926,6 @@ class EntityPlatform:
|
||||
)
|
||||
|
||||
entity.registry_entry = entry
|
||||
if device:
|
||||
entity.device_entry = device
|
||||
entity.entity_id = entry.entity_id
|
||||
|
||||
else: # entity.unique_id is None
|
||||
|
||||
Reference in New Issue
Block a user