Explorar el Código

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 hace 3 años
padre
commit
10bd189d52
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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
       type: string
       name: direction_control
+      optional: true
       mapping:
         - dps_val: forward
           value: forward
@@ -65,6 +66,7 @@ primary_entity:
     - id: 13
       type: boolean
       name: locate
+      optional: true
     - id: 15
       type: string
       name: clean_record