mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-22 09:26:16 +00:00
fix func name
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ class ChargeControls:
|
||||
self.list: dict = {}
|
||||
self._confighash = None
|
||||
|
||||
def saveconfig(self,name="charge_config.json",force=False):
|
||||
def save_config(self, name="charge_config.json", force=False):
|
||||
chd = {}
|
||||
for key, el in self.list.items():
|
||||
chd[el.vin] = {"percentage_threshold": el.percentage_threshold, "stop_hour": el._stop_hour}
|
||||
|
||||
+1
-1
@@ -114,7 +114,7 @@ if not argv[1].endswith(".apk"):
|
||||
for vin,vehicle in res.items():
|
||||
chc = ChargeControl(None,vin,100,[0,0])
|
||||
charge_controls.list[vin] = chc
|
||||
charge_controls.saveconfig(name="charge_config1.json")
|
||||
charge_controls.save_config(name="charge_config1.json")
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user