mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-24 02:16:14 +00:00
Merge pull request #72 from xammmue/bugfix_save-charge-config-for-correct-name
store charge controls file name in ChargeControls to save it without …
This commit is contained in:
+2
-2
@@ -163,10 +163,10 @@ psacc.vehicles_list.save_cars()
|
||||
print(f"\nYour vehicles: {res}")
|
||||
|
||||
# Charge control
|
||||
charge_controls = ChargeControls()
|
||||
charge_controls = ChargeControls("charge_config1.json")
|
||||
for vehicle in res:
|
||||
chc = ChargeControl(psacc, vehicle.vin, 100, [0, 0])
|
||||
charge_controls[vehicle.vin] = chc
|
||||
charge_controls.save_config(name="charge_config1.json")
|
||||
charge_controls.save_config()
|
||||
|
||||
print("Success !!!")
|
||||
|
||||
Reference in New Issue
Block a user