Преглед изворни кода

fix (apricus_heat_pump_water_heater): power sensor is actually energy

Issue #4533
Jason Rumney пре 2 дана
родитељ
комит
f0ad1b9dce
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      custom_components/tuya_local/devices/apricus_heat_pump_water_heater.yaml

+ 3 - 3
custom_components/tuya_local/devices/apricus_heat_pump_water_heater.yaml

@@ -36,13 +36,13 @@ entities:
         type: string
         type: string
         hidden: true
         hidden: true
   - entity: sensor
   - entity: sensor
-    class: power
+    class: energy
     category: diagnostic
     category: diagnostic
     dps:
     dps:
       - id: 101
       - id: 101
         type: integer
         type: integer
         name: sensor
         name: sensor
-        unit: W
-        class: measurement
+        unit: kWh
+        class: total_increasing
         mapping:
         mapping:
           - scale: 10
           - scale: 10