Răsfoiți Sursa

Water valve: don't set error if no value is return

Add additional mapping if value is returned to consider there is no
error.
Frederic Crozat 2 ani în urmă
părinte
comite
4a29f49dd9
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      custom_components/tuya_local/devices/ble_water_valve.yaml

+ 2 - 0
custom_components/tuya_local/devices/ble_water_valve.yaml

@@ -54,6 +54,8 @@ secondary_entities:
         mapping:
         mapping:
           - dps_val: 0
           - dps_val: 0
             value: false
             value: false
+          - dps_val: null
+            value: false
           - value: true
           - value: true
   - entity: sensor
   - entity: sensor
     name: Operation
     name: Operation