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

IH001 LED controller: do not use hex with mapping

Hex is for when the value needs to be decoded to binary.
When it is mapped to strings, the handling code gets confused

Issue #1629
Jason Rumney 2 лет назад
Родитель
Сommit
b33d3b4e43
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      custom_components/tuya_local/devices/ih001_led_controller.yaml

+ 1 - 1
custom_components/tuya_local/devices/ih001_led_controller.yaml

@@ -58,7 +58,7 @@ secondary_entities:
     category: config
     dps:
       - id: 25
-        type: hex
+        type: string
         name: option
         mapping:
           - dps_val: "000c0d0000000000000000c80000"