Skip to content

Commit

Permalink
Update audi_models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DivingUp authored Mar 4, 2024
1 parent ab3266e commit fc6f218
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/audiconnect/audi_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def __init__(self, data):
self._tryAppendStateWithTs(data, "chargingState", -1, ["charging", "chargingStatus", "value", "chargingState"])
self._tryAppendStateWithTs(data, "plugState", -1, ["charging", "plugStatus", "value", "plugConnectionState"])
self._tryAppendStateWithTs(data, "remainingChargingTime", -1, ["charging", "plugStatus", "value", "remainingChargingTimeToComplete_min"])

self._tryAppendStateWithTs(data, "climatisationState", -1, ["climatisation", "auxiliaryHeatingStatus", "value", "climatisationState"])
self._tryAppendStateWithTs(data, "last_update_time", -1, ["measurements", "odometerStatus", "value", "carCapturedTimestamp"])

def _tryAppendStateWithTs(self, json, name, tsoff, loc):
ts = None
Expand Down

0 comments on commit fc6f218

Please sign in to comment.