Skip to content

Commit

Permalink
fix gather again
Browse files Browse the repository at this point in the history
  • Loading branch information
chemwolf6922 committed Dec 19, 2024
1 parent 87d2249 commit 0a11c1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/xiaomi_home/miot/miot_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ async def get_devices_with_dids_async(
self, dids: list[str]
) -> dict[str, dict]:
results: list[dict[str, dict]] = await asyncio.gather(
[self.__get_device_list_page_async, dids[index:index+150]
*[self.__get_device_list_page_async(dids[index:index+150])
for index in range(0, len(dids), 150)])
devices = {}
for result in results:
Expand Down

0 comments on commit 0a11c1b

Please sign in to comment.