Просмотр исходного кода

Add additional hex data type

Along with json and base64, this provides a hint for how to decode the string.
Jason Rumney 4 лет назад
Родитель
Сommit
451b92cfa3
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      custom_components/tuya_local/helpers/device_config.py

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

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