Browse Source

Updated optional dps

gkwok1 1 năm trước cách đây
mục cha
commit
8166a395e5

+ 3 - 0
custom_components/tuya_local/devices/ble_pulido_p13_lock.yaml

@@ -126,6 +126,7 @@ secondary_entities:
       - id: 26
       - id: 26
         type: string
         type: string
         name: option
         name: option
+        optional: true
         mapping:
         mapping:
           - dps_val: 5s
           - dps_val: 5s
             value: 5s
             value: 5s
@@ -189,6 +190,7 @@ secondary_entities:
         name: sensor
         name: sensor
         unit: "%"
         unit: "%"
         class: measurement
         class: measurement
+        optional: true
         mapping:
         mapping:
           - dps_val: high
           - dps_val: high
             value: 100
             value: 100
@@ -206,6 +208,7 @@ secondary_entities:
       - id: 28
       - id: 28
         type: string
         type: string
         name: option
         name: option
+        optional: true
         mapping:
         mapping:
           - dps_val: chinese_simplified
           - dps_val: chinese_simplified
             value: 中文
             value: 中文