Răsfoiți Sursa

refactor(fan): improved gorilla fan implementation

Aravind Jaimon 1 an în urmă
părinte
comite
bcfaeba293
1 a modificat fișierele cu 1 adăugiri și 13 ștergeri
  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: