소스 검색

fix (infrared): need to iterate over dictionary items()

Jason Rumney 1 개월 전
부모
커밋
0295614eba
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      custom_components/tuya_local/infrared.py

+ 1 - 1
custom_components/tuya_local/infrared.py

@@ -60,7 +60,7 @@ class TuyaLocalInfrared(TuyaLocalEntity, InfraredEntity):
             i += 2
 
         start = 0
-        for s, t in split:
+        for s, t in split.items():
             tuya_command = IR.pulses_to_base64(raw[start:s])
             _LOGGER.debug("Sending infrared command: %s", tuya_command)
             start = s