This commit is contained in:
Florian Bezannier
2023-10-29 17:47:06 +01:00
committed by Florian BEZANNIER
parent 5fcdd40cf4
commit 62c1dbff7c
+1 -1
View File
@@ -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"