Skip to content

Commit dcd7617

Browse files
committed
Revert "eco: use 3 phases for cheap tariff hours (openWB#2448)"
This reverts commit 806aad2.
1 parent 27c3c99 commit dcd7617

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

packages/control/ev/charge_template.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,7 @@ def eco_charging(self,
266266
soc: Optional[float],
267267
min_current: int,
268268
charging_type: str,
269-
used_amount: float,
270-
max_phases_hw: int) -> Tuple[int, str, Optional[str], int]:
269+
used_amount: float) -> Tuple[int, str, Optional[str], int]:
271270
""" prüft, ob Min-oder Max-Soc erreicht wurden und setzt entsprechend den Ladestrom.
272271
"""
273272
message = None
@@ -290,7 +289,6 @@ def eco_charging(self,
290289
if data.data.optional_data.et_charging_allowed(eco_charging.max_price):
291290
sub_mode = "instant_charging"
292291
message = self.CHARGING_PRICE_LOW
293-
phases = max_phases_hw
294292
else:
295293
current = min_current
296294
message = self.CHARGING_PRICE_EXCEEDED

packages/control/ev/ev.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def get_required_current(self,
206206
self.data.get.soc, control_parameter.min_current, charging_type, imported_since_plugged)
207207
elif charge_template.data.chargemode.selected == "eco_charging":
208208
required_current, submode, tmp_message, phases = charge_template.eco_charging(
209-
self.data.get.soc, control_parameter, charging_type, imported_since_plugged, max_phases_hw)
209+
self.data.get.soc, control_parameter, charging_type, imported_since_plugged)
210210
else:
211211
tmp_message = None
212212
message = f"{message or ''} {tmp_message or ''}".strip()

0 commit comments

Comments
 (0)