Просмотр исходного кода

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 год назад
Родитель
Сommit
379024addc
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      custom_components/tuya_local/devices/kogan_lx10_vacuum.yaml

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

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