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

Lublueblu vacuum: make some dps optional

The original PR seems to have been made purely from documentation without
checking the log message.  All the buttons and some other dps are not
reported by the actual device.

Issue #1378
Jason Rumney 2 лет назад
Родитель
Сommit
20214cc8e2
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      custom_components/tuya_local/devices/lublueblu_sl60d_vacuum.yaml

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

@@ -68,6 +68,7 @@ primary_entity:
     - id: 11
     - id: 11
       type: boolean
       type: boolean
       name: locate
       name: locate
+      optional: true
     - id: 12
     - id: 12
       type: string
       type: string
       name: direction_control
       name: direction_control
@@ -171,6 +172,7 @@ secondary_entities:
         type: integer
         type: integer
         name: sensor
         name: sensor
         unit: min
         unit: min
+        optional: true
   - entity: sensor
   - entity: sensor
     name: Total cleaning area
     name: Total cleaning area
     icon: "mdi:texture-box"
     icon: "mdi:texture-box"
@@ -206,6 +208,7 @@ secondary_entities:
       - id: 13
       - id: 13
         type: boolean
         type: boolean
         name: button
         name: button
+        optional: true
   - entity: button
   - entity: button
     name: Reset edge brush
     name: Reset edge brush
     class: restart
     class: restart
@@ -214,6 +217,7 @@ secondary_entities:
       - id: 18
       - id: 18
         type: boolean
         type: boolean
         name: button
         name: button
+        optional: true
   - entity: button
   - entity: button
     name: Reset roll brush
     name: Reset roll brush
     class: restart
     class: restart
@@ -222,6 +226,7 @@ secondary_entities:
       - id: 20
       - id: 20
         type: boolean
         type: boolean
         name: button
         name: button
+        optional: true
   - entity: button
   - entity: button
     name: Reset filter
     name: Reset filter
     icon: "mdi:air-filter"
     icon: "mdi:air-filter"
@@ -230,6 +235,7 @@ secondary_entities:
       - id: 22
       - id: 22
         type: boolean
         type: boolean
         name: button
         name: button
+        optional: true
   - entity: switch
   - entity: switch
     name: Do not disturb
     name: Do not disturb
     icon: "mdi:minus-circle"
     icon: "mdi:minus-circle"