浏览代码

MRC Magnum: make some dps optional

Discussion #1279
Jason Rumney 2 年之前
父节点
当前提交
7c34958747
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      custom_components/tuya_local/devices/mrc_magnum_floorheater.yaml

+ 5 - 0
custom_components/tuya_local/devices/mrc_magnum_floorheater.yaml

@@ -113,6 +113,7 @@ secondary_entities:
       - id: 102
         type: string
         name: option
+        optional: true
         mapping:
           - dps_val: "0" 
             value: "0.1"
@@ -120,6 +121,9 @@ secondary_entities:
             value: "0.5"
           - dps_val: "2"
             value: "1.0"
+          - dps_val: null
+            value: Not set
+            hidden: true
   - entity: number
     name: Setback adjustment
     category: config
@@ -128,6 +132,7 @@ secondary_entities:
       - id: 103
         type: integer
         name: value
+        optional: true
         range:
           min: 2
           max: 8