From 24f9ad416ac6cf69fa905aac69a2e7a4d7ae52f7 Mon Sep 17 00:00:00 2001 From: coreywillwhat <104224685+coreywillwhat@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:12:52 -0600 Subject: [PATCH] fix: Climatisation State for 2024 Q4 (#452) --- custom_components/audiconnect/audi_models.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/custom_components/audiconnect/audi_models.py b/custom_components/audiconnect/audi_models.py index 30122182..1e8463e0 100644 --- a/custom_components/audiconnect/audi_models.py +++ b/custom_components/audiconnect/audi_models.py @@ -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(