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

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