Procházet zdrojové kódy

Add additional hex data type

Along with json and base64, this provides a hint for how to decode the string.
Jason Rumney před 4 roky
rodič
revize
451b92cfa3

+ 1 - 0
custom_components/tuya_local/helpers/device_config.py

@@ -252,6 +252,7 @@ class TuyaDpsConfig:
             "bitfield": int,
             "bitfield": int,
             "json": str,
             "json": str,
             "base64": str,
             "base64": str,
+            "hex": str,
         }
         }
         return types.get(t)
         return types.get(t)