Преглед изворни кода

fix(beca_bht006_thermostat_c): handle missing mode dp

The mode dp was already marked as optional, but it seems a recent firmware
update may have made it more common to be missing.

Issue #3455
Jason Rumney пре 8 месеци
родитељ
комит
54f33d4d2e
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      custom_components/tuya_local/devices/beca_bht006_thermostat_c.yaml

+ 5 - 0
custom_components/tuya_local/devices/beca_bht006_thermostat_c.yaml

@@ -21,6 +21,9 @@ entities:
                 value: heat
                 value: heat
               - dps_val: "wind"
               - dps_val: "wind"
                 value: fan_only
                 value: fan_only
+              - dps_val: null
+                value: null
+                hidden: true
       - id: 2
       - id: 2
         type: string
         type: string
         name: mode
         name: mode
@@ -74,6 +77,8 @@ entities:
                 value: cooling
                 value: cooling
               - dps_val: wind
               - dps_val: wind
                 value: fan
                 value: fan
+              - dps_val: null
+                value: null
       - id: 28
       - id: 28
         type: string
         type: string
         name: fan_mode
         name: fan_mode