Browse Source

fix (infrared): await asyncio sleep

Jason Rumney 1 day ago
parent
commit
442196d231
1 changed files with 1 additions and 1 deletions
  1. 1 1
      custom_components/tuya_local/infrared.py

+ 1 - 1
custom_components/tuya_local/infrared.py

@@ -66,7 +66,7 @@ class TuyaLocalInfrared(TuyaLocalEntity, InfraredEntity):
             _LOGGER.debug("Sending infrared command: %s", tuya_command)
             start = s
             await self._ir_send(tuya_command)
-            asyncio.sleep(t / 1000000)
+            await asyncio.sleep(t / 1000000)
         if start < len(raw):
             tuya_command = IR.pulses_to_base64(raw[start:])
             _LOGGER.debug("Sending infrared command: %s", tuya_command)