Browse Source

Fixed asyncio.sleep() not being awaited

mild-delirium 2 năm trước cách đây
mục cha
commit
d3260e0141
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      custom_components/tuya_local/device.py

+ 1 - 1
custom_components/tuya_local/device.py

@@ -294,7 +294,7 @@ class TuyaLocalDevice(object):
                         self._api.receive,
                     )
                 else:
-                    asyncio.sleep(5)
+                    await asyncio.sleep(5)
                     poll = None
 
                 if poll: