Skip to content

Commit

Permalink
fix: Climatisation State for 2024 Q4 (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreywillwhat authored Jul 24, 2024
1 parent 065c3a5 commit 24f9ad4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions custom_components/audiconnect/audi_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,24 @@ def __init__(self, data):
-1,
["climatisation", "auxiliaryHeatingStatus", "value", "climatisationState"],
)
# 2024 Q4 updated data structure for climate data
self._tryAppendStateWithTs(
data,
"climatisationState",
-1,
["climatisation", "climatisationStatus", "value", "climatisationState"],
)
self._tryAppendStateWithTs(
data,
"remainingClimatisationTime",
-1,
[
"climatisation",
"climatisationStatus",
"value",
"remainingClimatisationTime_min",
],
)

def _tryAppendStateWithTs(self, json, name, tsoff, loc):
_LOGGER.debug(
Expand Down

0 comments on commit 24f9ad4

Please sign in to comment.