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

Eeese Emil: remove icon logic from humidifier

This was in many dehumidifiers from the early days, but the proper way to do this is with a separate binary_sensor for tank, and leave it for the user to customise the UI, as setting the icon from the integration overrides any improvements that HA are continually making.

PR #2539
Jason Rumney 1 год назад
Родитель
Сommit
a075b916ac
1 измененных файлов с 0 добавлено и 15 удалено
  1. 0 15
      custom_components/tuya_local/devices/eeese_emil_dehumidifier.yaml

+ 0 - 15
custom_components/tuya_local/devices/eeese_emil_dehumidifier.yaml

@@ -9,13 +9,6 @@ primary_entity:
     - id: 1
     - id: 1
       name: switch
       name: switch
       type: boolean
       type: boolean
-      mapping:
-        - dps_val: false
-          icon: "mdi:air-humidifier-off"
-          icon_priority: 1
-        - dps_val: true
-          icon: "mdi:air-humidifier"
-          icon_priority: 4
     - id: 2
     - id: 2
       name: humidity
       name: humidity
       type: integer
       type: integer
@@ -35,14 +28,6 @@ primary_entity:
     - id: 16
     - id: 16
       type: integer
       type: integer
       name: current_humidity
       name: current_humidity
-    - id: 19
-      type: bitfield
-      name: error
-      mapping:
-        - dps_val: 1
-          icon: "mdi:cup-water"
-          icon_priority: 2
-      hidden: true
 secondary_entities:
 secondary_entities:
   - entity: lock
   - entity: lock
     translation_key: child_lock
     translation_key: child_lock