From fbcfbcd0ac53cc97014c202cb066cf0fb94b4d7a Mon Sep 17 00:00:00 2001 From: Florian Bezannier Date: Sun, 29 Oct 2023 17:12:24 +0100 Subject: [PATCH] fix: #552 --- psa_car_controller/web/view/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psa_car_controller/web/view/control.py b/psa_car_controller/web/view/control.py index 5a4b2c3a..3c55a10c 100644 --- a/psa_car_controller/web/view/control.py +++ b/psa_car_controller/web/view/control.py @@ -33,7 +33,7 @@ def get_control_tabs(config): myp: PSAClient = config.myp el = [] buttons_row = [] - if config.remote_control: + if config.remote_control and car.status is not None: try: preconditionning_state = car.status.preconditionning.air_conditioning.status != "Disabled" charging_state = car.status.get_energy('Electric').charging.status == "InProgress"