mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Fix failure in transform method (#30023)
* Fix failure in transform method * Fix formatting issue
This commit is contained in:
parent
41bef4b919
commit
36f7096f09
@ -3,7 +3,9 @@
|
|||||||
|
|
||||||
def dsmr_transform(value):
|
def dsmr_transform(value):
|
||||||
"""Transform DSMR version value to right format."""
|
"""Transform DSMR version value to right format."""
|
||||||
return float(value) / 10
|
if value.isdigit():
|
||||||
|
return float(value) / 10
|
||||||
|
return value
|
||||||
|
|
||||||
|
|
||||||
def tariff_transform(value):
|
def tariff_transform(value):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user