From 3ce850234f826acf466e0b631a8f7ce4cfa2e152 Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Mon, 11 Nov 2019 13:51:26 +0100 Subject: [PATCH] fix typo in comments (#28694) The global is called `PARALLEL_UPDATES` not `PARALLEL_UPDATE`. --- homeassistant/helpers/entity_platform.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/homeassistant/helpers/entity_platform.py b/homeassistant/helpers/entity_platform.py index 5c59dc6c13e..376a6e23e9a 100644 --- a/homeassistant/helpers/entity_platform.py +++ b/homeassistant/helpers/entity_platform.py @@ -272,13 +272,13 @@ class EntityPlatform: entity.platform = self # Async entity - # PARALLEL_UPDATE == None: entity.parallel_updates = None - # PARALLEL_UPDATE == 0: entity.parallel_updates = None - # PARALLEL_UPDATE > 0: entity.parallel_updates = Semaphore(p) + # PARALLEL_UPDATES == None: entity.parallel_updates = None + # PARALLEL_UPDATES == 0: entity.parallel_updates = None + # PARALLEL_UPDATES > 0: entity.parallel_updates = Semaphore(p) # Sync entity - # PARALLEL_UPDATE == None: entity.parallel_updates = Semaphore(1) - # PARALLEL_UPDATE == 0: entity.parallel_updates = None - # PARALLEL_UPDATE > 0: entity.parallel_updates = Semaphore(p) + # PARALLEL_UPDATES == None: entity.parallel_updates = Semaphore(1) + # PARALLEL_UPDATES == 0: entity.parallel_updates = None + # PARALLEL_UPDATES > 0: entity.parallel_updates = Semaphore(p) if hasattr(entity, "async_update") and not self.parallel_updates: entity.parallel_updates = None elif not hasattr(entity, "async_update") and self.parallel_updates == 0: