Skip to content

Update documentation for XCB1VE (Megane e-tech)#2118

Merged
epenet merged 2 commits into
hacf-fr:mainfrom
tlpeter:tlpeter-patch-1
May 26, 2026
Merged

Update documentation for XCB1VE (Megane e-tech)#2118
epenet merged 2 commits into
hacf-fr:mainfrom
tlpeter:tlpeter-patch-1

Conversation

@tlpeter
Copy link
Copy Markdown
Contributor

@tlpeter tlpeter commented May 26, 2026

Summary

Restores the soc-levels endpoint for model XCB1VE (Renault Megane E-Tech), which was previously set to None with the comment err.func.wired.forbidden.

Change

# Before
"soc-levels": None,  # Reason: "err.func.wired.forbidden"

# After
"soc-levels": _DEFAULT_ENDPOINTS["soc-levels"],

Background

The soc-levels endpoint (/kcm/v1/vehicles/{vin}/ev/soc-levels) was disabled for all Megane E-Tech owners based on a 403 Forbidden response

Tested

  • Model code: XCB1VE (Renault Megane E-Tech)
  • VIN prefix: VF1RCB
  • Locale: nl_NL
  • renault-api version: 0.5.10

With this fix applied, the endpoint responds correctly and returns socMin and socTarget without any 403 error. Both entities are restored and functional in Home Assistant.

## Summary

Restores the `soc-levels` endpoint for model `XCB1VE` (Renault Megane E-Tech), which was previously set to `None` with the comment `err.func.wired.forbidden`.

## Change

```python
# Before
"soc-levels": None,  # Reason: "err.func.wired.forbidden"

# After
"soc-levels": _DEFAULT_ENDPOINTS["soc-levels"],
```

## Background

The `soc-levels` endpoint (`/kcm/v1/vehicles/{vin}/ev/soc-levels`) was disabled for all Megane E-Tech owners based on a `403 Forbidden` response

## Tested

- **Model code:** `XCB1VE` (Renault Megane E-Tech)
- **VIN prefix:** `VF1RCB`
- **Locale:** `nl_NL`
- **renault-api version:** 0.5.10

With this fix applied, the endpoint responds correctly and returns `socMin` and `socTarget` without any 403 error. Both entities are restored and functional in Home Assistant.
@epenet
Copy link
Copy Markdown
Collaborator

epenet commented May 26, 2026

tests are failing

@epenet epenet changed the title Fix XCB1VE soc-levels endpoint incorrectly set to None Update documentation for XCB1VE (Megane e-tech) May 26, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.09%. Comparing base (bd2e393) to head (2d86d32).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2118   +/-   ##
=======================================
  Coverage   87.09%   87.09%           
=======================================
  Files          34       34           
  Lines        2170     2170           
  Branches      248      248           
=======================================
  Hits         1890     1890           
  Misses        198      198           
  Partials       82       82           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@epenet epenet merged commit 2e9ebd1 into hacf-fr:main May 26, 2026
20 checks 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