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

essentials bathroom heater: naming tweaks before merge

- Shorten the top level name, as it is prepended in various places in the UI.
- don't use a descriptive name for the model
- relative temperatures do not convert well, so avoid C/F units for them, and use generic degree sign instead.
- use min rather than mins for minute abbreviation to be consistent with sensor units.
Jason Rumney 1 год назад
Родитель
Сommit
f17a07d53a

+ 5 - 6
custom_components/tuya_local/devices/essentials_smart_electric_heater.yaml

@@ -1,8 +1,7 @@
-name: Electric Bathroom Heater
+name: Bathroom heater
 products:
   - id: crtjvuaaipzpatlk
-    manufacturer: essentials
-    model: Smart Home Electric Bathroom Heater
+    manufacturer: essentials Smart Home
 entities:
   - entity: climate
     translation_only_key: heater
@@ -52,7 +51,7 @@ entities:
       - id: 27
         type: integer
         name: value
-        unit: C
+        unit: °
         range:
           min: -5
           max: 5
@@ -75,8 +74,8 @@ entities:
             value: "Off"
             icon: "mdi:window-closed"
           - dps_val: 60
-            value: "60 mins"
+            value: "60 min"
             icon: "mdi:window-open"
           - dps_val: 90
-            value: "90 mins"
+            value: "90 min"
             icon: "mdi:window-open"