Преглед на файлове

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"""