"Secondary Engine Range" is reporting the sensor as Unavailable when value is 0. The sensor should still show as available, but display 0.
2024-04-11 06:00:02.276 DEBUG (MainThread) [custom_components.audiconnect.audi_models] Found and appended state with timestamp: name=secondaryEngineRange, tsoff=-2, loc=['fuelStatus', 'rangeStatus', 'value', 'carCapturedTimestamp'], val=0, ts=2024-04-11 04:17:04+00:00
The issue is due to python considering "0" as Falsy. We need to specifically check if it is neither None or unsupported.
"Secondary Engine Range" is reporting the sensor as Unavailable when value is 0. The sensor should still show as available, but display 0.
The issue is due to python considering "0" as Falsy. We need to specifically check if it is neither
None
orunsupported
.tested and working with this PR