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

feat(earu_multicircuit_energymeter): naming tweaks

- standardise filename to brand_model_type
- keep branding under products
- follow HA naming convention (case)

PR #3377
Jason Rumney 8 месяцев назад
Родитель
Сommit
923a5dad2d

+ 5 - 5
custom_components/tuya_local/devices/earu_multi-circuit_power_meter.yaml → custom_components/tuya_local/devices/earu_multicircuit_energymeter.yaml

@@ -1,4 +1,4 @@
-name: EARU Multi-Circuit Power Meter
+name: Multi-circuit power meter
 products:
   - id: tehjajiyfp2phy4d
     manufacturer: EARU Electronic
@@ -110,7 +110,7 @@ entities:
     class: current
     translation_key: current_x
     translation_placeholders:
-      x: Total
+      x: total
     category: diagnostic
     dps:
       - id: 104
@@ -434,7 +434,7 @@ entities:
     class: power
     translation_key: power_x
     translation_placeholders:
-      x: Total
+      x: total
     category: diagnostic
     dps:
       - id: 104
@@ -919,14 +919,14 @@ entities:
         mapping:
           - scale: 100
   - entity: sensor
-    name: Meter Type
+    name: Meter type
     category: diagnostic
     dps:
       - id: 108
         type: string
         name: sensor
   - entity: sensor
-    name: Solar Total
+    name: Solar total
     category: diagnostic
     dps:
       - id: 112