From 967a168ab766867fca534fe402ec1a4c149bc398 Mon Sep 17 00:00:00 2001 From: "David F. Mulcahey" Date: Sun, 19 Jul 2020 20:40:08 -0400 Subject: [PATCH] Update comment about parallel updates to match the documentation (#37964) --- homeassistant/helpers/entity_platform.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/helpers/entity_platform.py b/homeassistant/helpers/entity_platform.py index ee60563ba2a..d101abe2b1a 100644 --- a/homeassistant/helpers/entity_platform.py +++ b/homeassistant/helpers/entity_platform.py @@ -79,7 +79,8 @@ class EntityPlatform: If parallel updates is set to 0, we skip the semaphore. If parallel updates is set to a number, we initialize the semaphore to that number. - Default for entities with `async_update` method is 1. Otherwise it's 0. + The default value for parallel requests is decided based on the first entity that is added to Home Assistant. + It's 0 if the entity defines the async_update method, else it's 1. """ if self.parallel_updates_created: return self.parallel_updates