Skip to content

Nissan: Genauere SoC-Werte und robustere Verbindungen - #4186

Merged
LKuemmel merged 4 commits into
openWB:masterfrom
wippofax:nissan-soc-precision-and-connection-recovery-pr
Oct 26, 2026
Merged

LKuemmel merged 4 commits into
openWB:masterfrom
wippofax:nissan-soc-precision-and-connection-recovery-pr

Conversation

@wippofax

Copy link
Copy Markdown
Contributor
  • Verwendet plausible batteryBarLevel-Werte für einen feineren SoC, sonst weiterhin batteryLevel.
  • Wiederholt Fahrzeug-GETs bei Verbindungsfehlern einmal mit frischer Verbindung; keine Wiederholung bei Timeout/TLS-Fehlern.
  • Unterscheidet Transportfehler mit festen Meldungen, ohne private Anfrage- oder Antwortdaten auszugeben.

Report fixed timeout, TLS and connection error categories while preserving suppressed private exception context. Keep request scheduling and retry behavior unchanged; cover the categories and log privacy with synthetic tests.
Prefer valid batteryBarLevel values using the Leaf 0-240 scale.
Retain batteryLevel for malformed or inconsistent bar values.
Preserve genuine zero, measurement timestamps and passive requests.
Cover conversion, fallback and zero placeholders with synthetic tests.
Identify DNS failures, refused connections, closed responses and interruptions.
Inspect nested exception types while retaining a generic unknown-cause message.
Keep private exception text and request data out of logs and tracebacks.
Preserve request behavior, retries, authentication and measurement timestamps.
Validate 82 API cases on Windows/Linux, autopep8 and Flake8.
Repeat a vehicle-data GET once after a connection failure, clearing pooled
connections while preserving cookies, tokens and privacy settings. Keep
recognized timeout/TLS failures, login requests and HTTP errors unchanged.

Add focused retry, session preservation and authorization regression tests.
All 91 module cases pass on Windows and Linux; autopep8 and Flake8 pass.
@LKuemmel
LKuemmel merged commit 79a2fb3 into openWB:master Oct 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants