Procházet zdrojové kódy

feat (goldair_ggk1000_kettle) pre-merge cleanup

- remove branding from top level name
   - branding belongs under products, as other brands may also match the config
- remove name from Countdown timer
   - translation_key: timer provides translated names
- hide work state sensor, and remove mapping
   - with mapping, HA expects a class enum, but with only one value this is not interesting to show

PR #3670
Jason Rumney před 5 měsíci
rodič
revize
ab3e591f2d

+ 2 - 5
custom_components/tuya_local/devices/goldair_ggk1000_kettle

@@ -1,4 +1,4 @@
-name: Goldair Kettle
+name: Kettle
 products:
   - id: 2vuvtw0cj8wmjrpc
     manufacturer: Goldair
@@ -51,14 +51,12 @@ entities:
         name: switch
   - entity: sensor
     name: Work mode
+    hidden: true
     category: diagnostic
     dps:
       - id: 11
         type: string
         name: sensor
-        mapping:
-          - dps_val: boiling_quick
-            value: boil
   - entity: sensor
     translation_key: status
     class: enum
@@ -89,7 +87,6 @@ entities:
           min: 0
           max: 720
   - entity: number
-    name: Countdown timer
     category: config
     class: duration
     translation_key: timer