diff --git a/psa_car_controller/psacc/application/charging.py b/psa_car_controller/psacc/application/charging.py index d75dadca..e58d649a 100644 --- a/psa_car_controller/psacc/application/charging.py +++ b/psa_car_controller/psacc/application/charging.py @@ -104,7 +104,7 @@ def _calculated_fields(charge_list: list): if c.get("stop_at") and c.get("start_at"): c.update( { - "duration_min": (c.get("stop_at") - c.get("start_at")).seconds + "duration_min": (c.get("stop_at") - c.get("start_at")).total_seconds() / 60, "duration_str": str((c.get("stop_at") - c.get("start_at"))), }