Commit 7b078f47 authored by Cédric Crettaz's avatar Cédric Crettaz 🖥
Browse files

Correction of a bug in the Carouge watering DCA.

parent 62794fb0
......@@ -325,7 +325,7 @@ def _conv_micro_volts_to_moisture(micro_volts):
if micro_volts == 0:
return 0
return int(micro_volts / 100)
return float(micro_volts / 100)
def _conv_micro_volts_to_battery_level(micro_volts):
"""Battery is 0-12v
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment