瀏覽代碼

Dream Maker Feel: clarifications from review

- move fault_code from primary_entity to the related problem entity.
- remove name from indicator light so translations will be used.

PR #2277
Jason Rumney 1 年之前
父節點
當前提交
a760df0b52
共有 1 個文件被更改,包括 7 次插入5 次删除
  1. 7 5
      custom_components/tuya_local/devices/dream_maker_feel_fan.yaml

+ 7 - 5
custom_components/tuya_local/devices/dream_maker_feel_fan.yaml

@@ -28,10 +28,6 @@ primary_entity:
     - id: 5
     - id: 5
       type: boolean
       type: boolean
       name: oscillate
       name: oscillate
-    - id: 24
-      name: fault_code
-      type: bitfield
-      optional: true
 
 
 secondary_entities:
 secondary_entities:
   - entity: select
   - entity: select
@@ -69,7 +65,6 @@ secondary_entities:
         name: lock
         name: lock
   - entity: light
   - entity: light
     translation_key: indicator
     translation_key: indicator
-    name: Status lights
     category: config
     category: config
     dps:
     dps:
       - id: 15
       - id: 15
@@ -90,10 +85,17 @@ secondary_entities:
       - id: 24
       - id: 24
         type: bitfield
         type: bitfield
         name: sensor
         name: sensor
+        optional: true
         mapping:
         mapping:
           - dps_val: 0
           - dps_val: 0
             value: false
             value: false
+          - dps_val: null
+            value: false
           - value: true
           - value: true
+      - id: 24
+        name: fault_code
+        type: bitfield
+        optional: true
   - entity: number
   - entity: number
     translation_key: timer
     translation_key: timer
     category: config
     category: config