瀏覽代碼

fix (infrared): dump json into string for sending

Jason Rumney 3 月之前
父節點
當前提交
fd3aa3bf6c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      custom_components/tuya_local/infrared.py

+ 1 - 1
custom_components/tuya_local/infrared.py

@@ -97,7 +97,7 @@ class TuyaLocalInfrared(TuyaLocalEntity, InfraredEntity):
             "head": "",
             "key1": "1" + command,
         }
-        return json_command
+        return json.dumps(json_command)
 
     def _package_multi_dp_send(self, command: str) -> dict:
         """Package the command for a multi DP send"""