mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-23 01:46:14 +00:00
fix: #552
This commit is contained in:
committed by
Florian BEZANNIER
parent
5fcdd40cf4
commit
62c1dbff7c
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user