Browse Source

Homebase oscillating fan: minor tweaks before merge

- Naming: follow HA case convention for top level name, and strip "Smart" as it is obvious in the context of HA.
- use translation_only_key for fan to avoid mangling the entity name
- add config category to timer.

PR #2833
Jason Rumney 1 year ago
parent
commit
6ca5dbc49f

+ 5 - 4
custom_components/tuya_local/devices/homebase_oscillating_fan.yaml

@@ -1,12 +1,12 @@
-name: Oscillating Smart Fan
+name: Oscillating fan
 products:
   - id: rastwarkmv7aa3oo
     manufacturer: Homebase
-    model: DC FAN XJ-30-5SDC-W # product_name
-    model_id: XJ-35-1SDC # model
+    model: DC fan XJ-30-5SDC-W
+    model_id: XJ-35-1SDC
 entities:
   - entity: fan
-    translation_key: fan_with_presets
+    translation_only_key: fan_with_presets
     dps:
       - id: 1
         name: switch
@@ -49,6 +49,7 @@ entities:
         class: measurement
   - entity: select
     translation_key: timer
+    category: config
     dps:
       - id: 22
         type: string