From 4a6585647e160116ff86fc450d863e0b144ea085 Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Tue, 19 Apr 2022 21:18:16 +0200 Subject: [PATCH] feat: update charge info even if there is no charge threshold --- psa_car_controller/psacc/application/charge_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psa_car_controller/psacc/application/charge_control.py b/psa_car_controller/psacc/application/charge_control.py index a2035e1..7a1a8a2 100644 --- a/psa_car_controller/psacc/application/charge_control.py +++ b/psa_car_controller/psacc/application/charge_control.py @@ -74,7 +74,7 @@ class ChargeControl: vehicle_status = self.psacc.vehicles_list.get_car_by_vin(self.vin).get_status() status = vehicle_status.get_energy('Electric').charging.status level = vehicle_status.get_energy('Electric').level - if status == "InProgress" and self.percentage_threshold < 100: + if status == "InProgress": logger.info("charging status of %s is %s, battery level: %d", self.vin, status, level) charging_mode = vehicle_status.get_energy('Electric').charging.charging_mode quick_refresh = isinstance(charging_mode, str) and charging_mode == "Quick"