Avoid creating temporary lists (#25317)
That gives nano performance improvements as *() is slightly faster then *[].
This commit is contained in:
parent
caa7a3a3d6
commit
979f801488
13 changed files with 42 additions and 42 deletions
|
@ -140,10 +140,10 @@ async def async_reproduce_state(
|
|||
|
||||
if to_call:
|
||||
# run all domains in parallel
|
||||
await asyncio.gather(*[
|
||||
await asyncio.gather(*(
|
||||
worker(domain, data)
|
||||
for domain, data in to_call.items()
|
||||
])
|
||||
))
|
||||
|
||||
|
||||
@bind_hass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue