From 0a11c1b422e082e4d2ba152e3483b9397bd226a2 Mon Sep 17 00:00:00 2001 From: Feng Wang Date: Thu, 19 Dec 2024 14:55:49 +0800 Subject: [PATCH] fix gather again --- custom_components/xiaomi_home/miot/miot_cloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/xiaomi_home/miot/miot_cloud.py b/custom_components/xiaomi_home/miot/miot_cloud.py index 5b8818a9..f9f4ad58 100644 --- a/custom_components/xiaomi_home/miot/miot_cloud.py +++ b/custom_components/xiaomi_home/miot/miot_cloud.py @@ -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: