fix func name

This commit is contained in:
Florian Bezannier
2020-11-26 18:25:52 +01:00
parent 129988405c
commit 40c9fd517f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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")