Fix failure in transform method (#30023)
* Fix failure in transform method * Fix formatting issue
This commit is contained in:
1 parent
41bef4b919
commit
36f7096f09
1 file changed
+3
-1
@@ -3,7 +3,9 @@
|
||||
|
||||
def dsmr_transform(value):
|
||||
"""Transform DSMR version value to right format."""
|
||||
return float(value) / 10
|
||||
if value.isdigit():
|
||||
return float(value) / 10
|
||||
return value
|
||||
|
||||
|
||||
def tariff_transform(value):
|
||||
|
||||
Reference in new issue
Block a user