瀏覽代碼

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 年之前
父節點
當前提交
4a29f49dd9
共有 1 個文件被更改,包括 2 次插入0 次删除
  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:
           - dps_val: 0
             value: false
+          - dps_val: null
+            value: false
           - value: true
   - entity: sensor
     name: Operation