Skip to content

Commit

Permalink
fix: #552
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Bezannier authored and flobz committed Oct 29, 2023
1 parent 5fcdd40 commit 62c1dbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psa_car_controller/web/view/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 62c1dbf

Please sign in to comment.