Skip to content

Commit

Permalink
Update psa_car_controller/psa/RemoteClient.py
Browse files Browse the repository at this point in the history
Co-authored-by: Florian BEZANNIER <[email protected]>
  • Loading branch information
maximeallanic and flobz authored Nov 5, 2024
1 parent 75368d8 commit 0b06c56
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion psa_car_controller/psa/RemoteClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ def _on_mqtt_message(self, client, userdata, msg): # pylint: disable=unused-arg
elif msg.topic.startswith(MQTT_EVENT_TOPIC):
charge_info = data["charging_state"]
programs = data["precond_state"].get("programs", None)
self.doors_state[data["vin"]] = data["doors_state"]
if "door_state" in data:
self.doors_state[data["vin"]] = data["doors_state"]
if programs:
self.precond_programs[data["vin"]] = data["precond_state"]["programs"]
self._fix_not_updated_api(charge_info, data["vin"])
Expand Down

0 comments on commit 0b06c56

Please sign in to comment.