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

Summary: pj1103: set units for energy sensor

Issue #395 #issuecomment-1427799579 point 1
Jason Rumney пре 3 година
родитељ
комит
35db9949c3
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      custom_components/tuya_local/devices/pj1103_clamp_meter.yaml

+ 1 - 0
custom_components/tuya_local/devices/pj1103_clamp_meter.yaml

@@ -84,6 +84,7 @@ secondary_entities:
         type: integer
         name: sensor
         optional: true
+        unit: kWh
         mapping:
           - dps_val: null
           - scale: 100