瀏覽代碼

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 年之前
父節點
當前提交
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"