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

Lefant M213 vacuum: mark some more attributes as optional

When testing persistent connection changes, I removed and re-added my device
and found it wasn't matching due to a different set of missing attributes than
previously set optional (most of the previous set are in fact present).
Jason Rumney 3 лет назад
Родитель
Сommit
10bd189d52
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      custom_components/tuya_local/devices/lefant_m213_vacuum.yaml

+ 2 - 0
custom_components/tuya_local/devices/lefant_m213_vacuum.yaml

@@ -27,6 +27,7 @@ primary_entity:
     - id: 4
     - id: 4
       type: string
       type: string
       name: direction_control
       name: direction_control
+      optional: true
       mapping:
       mapping:
         - dps_val: forward
         - dps_val: forward
           value: forward
           value: forward
@@ -65,6 +66,7 @@ primary_entity:
     - id: 13
     - id: 13
       type: boolean
       type: boolean
       name: locate
       name: locate
+      optional: true
     - id: 15
     - id: 15
       type: string
       type: string
       name: clean_record
       name: clean_record