Skip to content

Commit

Permalink
fix: #552
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Bezannier committed Oct 29, 2023
1 parent 9f46327 commit fbcfbcd
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 fbcfbcd

Please sign in to comment.