fix: charging status not available from api even when charging status is available

This commit is contained in:
SharkEzz
2022-09-03 19:53:17 +02:00
parent 9f214bbc09
commit a324a5ed5a
@@ -83,7 +83,7 @@ class Charging:
try:
last_charge = Database.get_last_charge(car.vin)
charge_just_finished = last_charge.stop_at is None
except TypeError:
except (TypeError, AttributeError):
logger.debug("battery table is probably empty :", exc_info=True)
charge_just_finished = False
if charge_just_finished: