mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-22 09:26:16 +00:00
Merge pull request #503 from virtualj/patch-1
fix: dont stop charge when charge level ==100
This commit is contained in:
@@ -88,7 +88,7 @@ class ChargeControl:
|
||||
if status == INPROGRESS:
|
||||
logger.info("charging status of %s is %s, battery level: %d", self.vin, status, level)
|
||||
self.force_update(vehicle_status)
|
||||
if hit_threshold and self.retry_count < 2:
|
||||
if has_threshold and hit_threshold and self.retry_count < 2:
|
||||
logger.info("Charge threshold is reached, stop the charge")
|
||||
self.control_charge_with_ack(False)
|
||||
elif self._next_stop_hour is not None:
|
||||
|
||||
Reference in New Issue
Block a user