Add comment to EntityPlatform._async_add_entity about update_before_add (#96891)

This commit is contained in:
Erik Montnemery
2023-07-19 13:07:23 +02:00
committed by GitHub
parent e18da97670
commit f0953dde95

View File

@@ -569,7 +569,8 @@ class EntityPlatform:
self._get_parallel_updates_semaphore(hasattr(entity, "update")),
)
# Update properties before we generate the entity_id
# Update properties before we generate the entity_id. This will happen
# also for disabled entities.
if update_before_add:
try:
await entity.async_device_update(warning=False)