We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a51ab7 commit 36a7637Copy full SHA for 36a7637
smartmeter/sml.py
@@ -518,9 +518,10 @@ def parse_frame(self, frame):
518
'valueRaw': entry.get_value(),
519
'name': OBIS_NAMES.get(entry.obis)
520
}
521
- if entry.scaler:
522
- content['scaler'] = entry.scaler
523
- content['value'] = round(content['value'] * 10 ** content['scaler'], 1)
+ # skip scaler calculation as the smllib has done this already
+ # if entry.scaler:
+ # content['scaler'] = entry.scaler
524
+ # content['value'] = round(content['value'] * 10 ** content['scaler'], 1)
525
if entry.unit:
526
content['unit'] = smlConst.UNITS.get(entry.unit)
527
content['unitCode'] = entry.unit
0 commit comments