Skip to content

Commit 633d28c

Browse files
committed
correct maximum current to 16A
1 parent eb808f8 commit 633d28c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/carconnectivity_connectors/skoda/connector.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -522,12 +522,12 @@ def fetch_charging(self, vehicle: SkodaElectricVehicle, no_cache: bool = False)
522522
if 'maxChargeCurrentAc' in data['settings'] and data['settings']['maxChargeCurrentAc'] is not None \
523523
and vehicle.charging is not None and vehicle.charging.settings is not None:
524524
vehicle.charging.settings.maximum_current.minimum = 6.0
525-
vehicle.charging.settings.maximum_current.maximum = 11.0
525+
vehicle.charging.settings.maximum_current.maximum = 16.0
526526
vehicle.charging.settings.maximum_current.precision = 1.0
527527
vehicle.charging.settings.maximum_current._add_on_set_hook(self.__on_charging_maximum_current_change) # pylint: disable=protected-access
528528
vehicle.charging.settings.maximum_current._is_changeable = True # pylint: disable=protected-access
529529
if data['settings']['maxChargeCurrentAc'] == 'MAXIMUM':
530-
vehicle.charging.settings.maximum_current._set_value(value=11, measured=captured_at) # pylint: disable=protected-access
530+
vehicle.charging.settings.maximum_current._set_value(value=16, measured=captured_at) # pylint: disable=protected-access
531531
elif data['settings']['maxChargeCurrentAc'] == 'REDUCED':
532532
vehicle.charging.settings.maximum_current._set_value(value=6, measured=captured_at) # pylint: disable=protected-access
533533
else:
@@ -1957,12 +1957,12 @@ def __on_charging_maximum_current_change(self, current_attribute: CurrentAttribu
19571957
setting_dict = {}
19581958
precision: float = current_attribute.precision if current_attribute.precision is not None else 1.0
19591959
maximum_current = round(maximum_current / precision) * precision
1960-
if maximum_current < 11:
1960+
if maximum_current < 16:
19611961
setting_dict['chargingCurrent'] = "REDUCED"
19621962
maximum_current = 6.0
19631963
else:
19641964
setting_dict['chargingCurrent'] = "MAXIMUM"
1965-
maximum_current = 11.0
1965+
maximum_current = 16.0
19661966

19671967
url = f'https://mysmob.api.connect.skoda-auto.cz/api/v1/charging/{vin}/set-charging-current'
19681968
try:

0 commit comments

Comments
 (0)