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

refactor(fan): improved gorilla fan implementation

Aravind Jaimon 1 год назад
Родитель
Сommit
bcfaeba293
1 измененных файлов с 1 добавлено и 13 удалено
  1. 1 13
      custom_components/tuya_local/devices/gorilla_fan_v2.yaml

+ 1 - 13
custom_components/tuya_local/devices/gorilla_fan_v2.yaml

@@ -5,15 +5,6 @@ primary_entity:
     - id: 1
       type: boolean
       name: switch
-      icon: mdi:ceiling-fan
-    - id: 2
-      type: string
-      name: preset_mode
-      mapping:
-        - dps_value: normal
-          value: Normal
-        - dps_value: boost
-          value: Boost
     - id: 3
       type: integer
       name: speed
@@ -23,8 +14,7 @@ primary_entity:
 
 secondary_entities:
   - entity: light
-    name: Night Light
-    icon: mdi:ceiling-fan-light
+    translation_key: nightlight
     dps:
       - id: 15
         type: boolean
@@ -44,8 +34,6 @@ secondary_entities:
         type: boolean
         name: switch
   - entity: number
-    name: Timer
-    icon: mdi:timer-edit
     translation_key: timer
     category: config
     dps: