Skip to content

Commit

Permalink
Update Cockpit endpoint (#1145)
Browse files Browse the repository at this point in the history
* fix: Go back to Version 1 for Cockpit Endpoint

* Adjust test fixture

---------

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
  • Loading branch information
Konubinix and epenet authored Apr 17, 2024
1 parent 21f58ef commit 356cf6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renault_api/kamereon/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"charge-mode": {"version": 1},
"charges": {"version": 1},
"charging-settings": {"version": 1},
"cockpit": {"version": 2},
"cockpit": {"version": 1},
"hvac-history": {"version": 1},
"hvac-sessions": {"version": 1},
"hvac-status": {"version": 1},
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def inject_get_charging_settings(mocked_responses: aioresponses, type: str) -> s

def inject_get_cockpit(mocked_responses: aioresponses, vehicle: str) -> str:
"""Inject sample cockpit."""
urlpath = f"{ADAPTER2_PATH}/cockpit?{DEFAULT_QUERY_STRING}"
urlpath = f"{ADAPTER_PATH}/cockpit?{DEFAULT_QUERY_STRING}"
filename = f"vehicle_data/cockpit.{vehicle}.json"
if not path.exists(f"{KAMEREON_FIXTURE_PATH}/{filename}"):
filename = "vehicle_data/cockpit.zoe.json"
Expand Down

0 comments on commit 356cf6a

Please sign in to comment.