Skip to content

Commit dbdf0ca

Browse files
committed
Add feedback
1 parent a3f906e commit dbdf0ca

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/batcontrol/logic/default.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,10 +371,10 @@ def __get_required_recharge_energy(self, calc_input: CalculationInput ,
371371

372372
# get high price slots
373373
high_price_slots = []
374-
for slots in range(max_slot):
375-
future_price = prices[slots]
374+
for slot in range(max_slot):
375+
future_price = prices[slot]
376376
if future_price > current_price+min_dynamic_price_difference:
377-
high_price_slots.append(slots)
377+
high_price_slots.append(slot)
378378

379379
# start with nearest slot
380380
high_price_slots.sort()
@@ -427,7 +427,8 @@ def __get_required_recharge_energy(self, calc_input: CalculationInput ,
427427
if not self.common.is_charging_above_minimum(recharge_energy):
428428
recharge_energy = 0.0
429429
else:
430-
# We are adding that minimum charge energy here, so that we are not stuck between limits.
430+
# We are adding that minimum charge energy here, so that we are not stuck
431+
# between limits.
431432
recharge_energy = recharge_energy + self.common.min_charge_energy
432433

433434
self.calculation_output.required_recharge_energy = recharge_energy

0 commit comments

Comments
 (0)