Sfoglia il codice sorgente

Kogan LX10: make dps optional that are optional on LX8

Most likely these are common firmware, so likely these need to be
optional on LX10 as well.

From PR #2032
Jason Rumney 1 anno fa
parent
commit
379024addc

+ 6 - 0
custom_components/tuya_local/devices/kogan_lx10_vacuum.yaml

@@ -162,6 +162,7 @@ secondary_entities:
       - id: 107
       - id: 107
         name: sensor
         name: sensor
         type: integer
         type: integer
+        optional: true
         unit: s
         unit: s
   - entity: sensor
   - entity: sensor
     name: Current clean area
     name: Current clean area
@@ -171,6 +172,7 @@ secondary_entities:
       - id: 108
       - id: 108
         name: sensor
         name: sensor
         type: integer
         type: integer
+        optional: true
         unit: m²
         unit: m²
   - entity: select
   - entity: select
     name: Water mode
     name: Water mode
@@ -180,6 +182,7 @@ secondary_entities:
       - id: 110
       - id: 110
         name: option
         name: option
         type: string
         type: string
+        optional: true
         mapping:
         mapping:
           - dps_val: 'off'
           - dps_val: 'off'
             value: 'off'
             value: 'off'
@@ -197,6 +200,7 @@ secondary_entities:
       - id: 113
       - id: 113
         name: switch
         name: switch
         type: boolean
         type: boolean
+        optional: true
   - entity: number
   - entity: number
     name: Volume
     name: Volume
     category: config
     category: config
@@ -274,6 +278,7 @@ secondary_entities:
       - id: 117
       - id: 117
         name: sensor
         name: sensor
         type: integer
         type: integer
+        optional: true
         unit: m²
         unit: m²
   - entity: sensor
   - entity: sensor
     name: Total clean count
     name: Total clean count
@@ -283,6 +288,7 @@ secondary_entities:
       - id: 118
       - id: 118
         name: sensor
         name: sensor
         type: integer
         type: integer
+        optional: true
   - entity: sensor
   - entity: sensor
     name: Side brush time
     name: Side brush time
     category: diagnostic
     category: diagnostic