소스 검색

Eeese Otto: make error and child lock dps optional

Issue #306
Jason Rumney 2 년 전
부모
커밋
bd0b47216b
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      custom_components/tuya_local/devices/eeese_otto_dehumidifier.yaml

+ 5 - 5
custom_components/tuya_local/devices/eeese_otto_dehumidifier.yaml

@@ -41,6 +41,7 @@ primary_entity:
     - id: 19
       type: bitfield
       name: error
+      optional: true
       mapping:
         - dps_val: 1
           icon: "mdi:cup-water"
@@ -65,9 +66,12 @@ secondary_entities:
       - id: 19
         type: bitfield
         name: sensor
+        optional: true
         mapping:
           - dps_val: 0
             value: false
+          - dps_val: null
+            value: false
           - value: true
   - entity: switch
     name: Swing
@@ -77,8 +81,6 @@ secondary_entities:
       - id: 8
         type: boolean
         name: switch
-        
-
   - entity: switch
     name: Ionizer
     icon: "mdi:atom-variant"
@@ -95,6 +97,7 @@ secondary_entities:
       - id: 16
         type: boolean
         name: lock
+        optional: true
   - entity: select
     name: Timer
     icon: "mdi:timer"
@@ -154,6 +157,3 @@ secondary_entities:
             value: 23 hours
           - dps_val: 24h
             value: 24 hours
-
-
-