audiconnect / audi_connect_ha

Adds an audi connect integration to home assistant
MIT License
227 stars 98 forks source link

"Charging mode" unsupported #385

Closed coreywillwhat closed 4 months ago

coreywillwhat commented 5 months ago

Describe the bug Charging Mode is reporting a state of unsupported and this is being displayed as the HA Entity state.

Expected behavior Unsupported should be return as None and sensor should not be available in HA.

Screenshots image

Logfile

2024-04-16 05:52:28.613 DEBUG (MainThread) [custom_components.audiconnect.audi_models] Entering _tryAppendStateWithTs with name: chargingMode, tsoff: -1, loc: ['charging', 'chargingStatus', 'value', 'chargeType']
2024-04-16 05:52:28.613 DEBUG (MainThread) [custom_components.audiconnect.audi_models] Initial value retrieved for 'chargingMode': unsupported
2024-04-16 05:52:28.613 DEBUG (MainThread) [custom_components.audiconnect.audi_models] Updated loc for timestamp retrieval: ['charging', 'chargingStatus', 'value', 'carCapturedTimestamp']
2024-04-16 05:52:28.613 DEBUG (MainThread) [custom_components.audiconnect.audi_models] Timestamp retrieved for 'chargingMode': 2024-04-16 05:56:46+00:00
2024-04-16 05:52:28.613 DEBUG (MainThread) [custom_components.audiconnect.audi_models] Found and appended state with timestamp: name=chargingMode, tsoff=-1, loc=['charging', 'chargingStatus', 'value', 'carCapturedTimestamp'], val=unsupported, ts=2024-04-16 05:56:46+00:00