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

feat(duracomfort_dh50pwm_dehumidifier): tweaks before merge

- include model in product details
- remove translation_key from fan, as there are no presets
- filter tank full from problems, as it has its own binary_sensor

PR #3490
Jason Rumney пре 7 месеци
родитељ
комит
98fbf3f109

+ 3 - 1
custom_components/tuya_local/devices/duracomfort_dh50pwm_dehumidifier.yaml

@@ -2,6 +2,7 @@ name: Dehumidifier
 products:
   - id: keyfa7qemdvvux5c
     manufacturer: Dura Comfort
+    model: DH50PWM
 entities:
   - entity: humidifier
     class: dehumidifier
@@ -33,7 +34,6 @@ entities:
         name: current_humidity
         type: integer
   - entity: fan
-    translation_only_key: fan_with_presets
     dps:
       - id: 1
         type: boolean
@@ -56,6 +56,8 @@ entities:
         mapping:
           - dps_val: 0
             value: false
+          - dps_val: 32
+            value: false
           - value: true
   - entity: binary_sensor
     translation_key: tank_full