mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Update comment about parallel updates to match the documentation (#37964)
This commit is contained in:
parent
9092b83869
commit
967a168ab7
@ -79,7 +79,8 @@ class EntityPlatform:
|
|||||||
|
|
||||||
If parallel updates is set to 0, we skip the semaphore.
|
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.
|
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:
|
if self.parallel_updates_created:
|
||||||
return self.parallel_updates
|
return self.parallel_updates
|
||||||
|
Loading…
x
Reference in New Issue
Block a user