@@ -65,7 +65,7 @@ def __init__(self,
65
65
Params ("1to3, enough power, start timer" , max_current_single_phase = 16 , timestamp_auto_phase_switch = None ,
66
66
phases_to_use = 1 , required_current = 6 , evu_surplus = - 800 , reserved_evu_overhang = 0 , get_currents = [15.6 , 0 , 0 ],
67
67
get_power = 3450 , state = ChargepointState .CHARGING_ALLOWED , expected_phases_to_use = 1 , expected_current = 6 ,
68
- expected_message = Ev .PHASE_SWITCH_DELAY_TEXT .format ("Umschaltung von 1 auf 3" , "7 Min. 0 Sek. " ),
68
+ expected_message = Ev .PHASE_SWITCH_DELAY_TEXT .format ("Umschaltung von 1 auf 3" , "7 Min." ),
69
69
expected_timestamp_auto_phase_switch = 1652683252.0 ,
70
70
expected_state = ChargepointState .PHASE_SWITCH_DELAY ),
71
71
Params ("1to3, not enough power, start timer" , max_current_single_phase = 16 , timestamp_auto_phase_switch = None ,
@@ -76,7 +76,7 @@ def __init__(self,
76
76
timestamp_auto_phase_switch = 1652682952.0 , phases_to_use = 1 , required_current = 6 ,
77
77
evu_surplus = - 1200 , reserved_evu_overhang = 460 , get_currents = [15.6 , 0 , 0 ], get_power = 3450 ,
78
78
state = ChargepointState .PHASE_SWITCH_DELAY , expected_phases_to_use = 1 , expected_current = 6 ,
79
- expected_message = Ev .PHASE_SWITCH_DELAY_TEXT .format ("Umschaltung von 1 auf 3" , "2 Min. 0 Sek. " ),
79
+ expected_message = Ev .PHASE_SWITCH_DELAY_TEXT .format ("Umschaltung von 1 auf 3" , "2 Min." ),
80
80
expected_timestamp_auto_phase_switch = 1652683252.0 ,
81
81
expected_state = ChargepointState .PHASE_SWITCH_DELAY ),
82
82
Params ("1to3, not enough power, timer not expired" , max_current_single_phase = 16 ,
@@ -96,15 +96,15 @@ def __init__(self,
96
96
phases_to_use = 3 , required_current = 6 , evu_surplus = 0 , reserved_evu_overhang = 0 ,
97
97
get_currents = [4.5 , 4.4 , 5.8 ], get_power = 3381 , state = ChargepointState .CHARGING_ALLOWED ,
98
98
expected_phases_to_use = 3 , expected_current = 6 ,
99
- expected_message = "Umschaltung von 3 auf 1 Phasen in 9 Min. 0 Sek. ." ,
99
+ expected_message = "Umschaltung von 3 auf 1 Phasen in 9 Min.." ,
100
100
expected_timestamp_auto_phase_switch = 1652683252.0 ,
101
101
expected_state = ChargepointState .PHASE_SWITCH_DELAY ),
102
102
Params ("3to1, not enough power, timer not expired" , max_current_single_phase = 16 ,
103
103
timestamp_auto_phase_switch = 1652682952.0 ,
104
104
phases_to_use = 3 , required_current = 6 , evu_surplus = 0 , reserved_evu_overhang = - 460 ,
105
105
get_currents = [4.5 , 4.4 , 5.8 ], get_power = 3381 , state = ChargepointState .PHASE_SWITCH_DELAY ,
106
106
expected_phases_to_use = 3 , expected_current = 6 ,
107
- expected_message = "Umschaltung von 3 auf 1 Phasen in 4 Min. 0 Sek. ." ,
107
+ expected_message = "Umschaltung von 3 auf 1 Phasen in 4 Min.." ,
108
108
expected_timestamp_auto_phase_switch = 1652683252.0 ,
109
109
expected_state = ChargepointState .PHASE_SWITCH_DELAY ),
110
110
Params ("3to1, enough power, timer not expired" , max_current_single_phase = 16 ,
0 commit comments