Przeglądaj źródła

Fixed asyncio.sleep() not being awaited

mild-delirium 3 lat temu
rodzic
commit
d3260e0141
1 zmienionych plików z 1 dodań i 1 usunięć
  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: