This commit is contained in:
Aart van Halteren
2022-01-10 16:59:35 +01:00
parent 8d43accec6
commit d6213e963a

View File

@@ -161,7 +161,7 @@ class Cost
# charge battery with return_kwh
return_kwh -= battery.charge(return_kwh)
if low_hour.eql?(formatted_hour)
if lowest_hour.eql?(formatted_hour)
# charge battery during lowest hour
usage_kwh += battery.charge(max_charge_kwh)
else