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

pull/96900/head
Erik Montnemery 2023-07-19 13:07:23 +02:00 committed by GitHub
parent e18da97670
commit f0953dde95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -569,7 +569,8 @@ class EntityPlatform:
self._get_parallel_updates_semaphore(hasattr(entity, "update")), 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: if update_before_add:
try: try:
await entity.async_device_update(warning=False) await entity.async_device_update(warning=False)