ソースを参照

fix(device): error codes are strings in tuya protocol

Was testing for 904 to suppress errors, but "904" needed

#4874 by spotted @apilone
Jason Rumney 2 週間 前
コミット
bdf05296f6
1 ファイル変更1 行追加1 行削除
  1. 1 1
      custom_components/tuya_local/device.py

+ 1 - 1
custom_components/tuya_local/device.py

@@ -370,7 +370,7 @@ class TuyaLocalDevice(object):
                     )
                     # Ignore Payload error 904, as 3.4 protocol devices seem to return
                     # this when there is no new data, instead of just returning nothing.
-                    if poll and "Err" in poll and poll["Err"] == 904:
+                    if poll and "Err" in poll and poll["Err"] == "904":
                         poll = None
                 else:
                     force_backoff = True