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

Lefant M213: make some dps optional for M210P compatibility

M210P has a couple of extra dps as well, but the full info is not available
for them, so for now, just make the minor attributes that are missing
from that model optional.

Issue #1467
Jason Rumney 1 год назад
Родитель
Сommit
d121b35f57
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      custom_components/tuya_local/devices/lefant_m213_vacuum.yaml

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

@@ -107,12 +107,15 @@ primary_entity:
           value: High
           value: High
     - id: 102
     - id: 102
       type: integer
       type: integer
+      optional: true
       name: chassis_temperature
       name: chassis_temperature
     - id: 103
     - id: 103
       type: integer
       type: integer
+      optional: true
       name: heading
       name: heading
     - id: 104
     - id: 104
       type: integer
       type: integer
+      optional: true
       name: iic_error_count
       name: iic_error_count
     - id: 105
     - id: 105
       type: string
       type: string