Skip to content

Commit

Permalink
Add comment to EntityPlatform._async_add_entity about update_before_a…
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery committed Jul 19, 2023
1 parent e18da97 commit f0953dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion homeassistant/helpers/entity_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,8 @@ async def _async_add_entity( # noqa: C901
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)
Expand Down

0 comments on commit f0953dd

Please sign in to comment.