Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Fix HVAC status endpoint (#1211)" #1242

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/renault_api/kamereon/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ class KamereonVehicleHvacStatusData(KamereonVehicleDataAttributes):

lastUpdateTime: Optional[str]
externalTemperature: Optional[float]
hvacStatus: Optional[int]
hvacStatus: Optional[str]
nextHvacStartDate: Optional[str]
socThreshold: Optional[float]

Expand Down
10 changes: 5 additions & 5 deletions tests/cli/test_vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"Lock status locked\n"
"Lock last updated 2022-02-02 14:51:13\n"
"Engine state Stopped, ready for RES\n"
"HVAC status 2\n"
"HVAC status on\n"
"----------------- -------------------------\n"
),
"zoe_40.1.json": (
Expand All @@ -94,7 +94,7 @@
"Charge mode always\n"
"Total mileage 49114.27 km\n"
"Engine state Stopped, ready for RES\n"
"HVAC status 1\n"
"HVAC status off\n"
"External temperature 8.0 °C\n"
"-------------------- -------------------------\n"
),
Expand All @@ -108,7 +108,7 @@
"Charge mode always\n"
"Total mileage 49114.27 km\n"
"Engine state Stopped, ready for RES\n"
"HVAC status 1\n"
"HVAC status off\n"
"External temperature 8.0 °C\n"
"-------------------- -------------------------\n"
),
Expand All @@ -129,7 +129,7 @@
"Lock status locked\n"
"Lock last updated 2022-02-02 14:51:13\n"
"Engine state Stopped, ready for RES\n"
"HVAC status 2\n"
"HVAC status on\n"
"----------------- -------------------------\n"
),
"zoe_40.1_json.json": (
Expand All @@ -139,7 +139,7 @@
'"charge-mode": {"chargeMode": "always"}, '
'"cockpit": {"totalMileage": 49114.27}, '
'"res-state": {"details": "Stopped, ready for RES", "code": "10"}, '
'"hvac-status": {"externalTemperature": 8.0, "hvacStatus": 1}}\n'
'"hvac-status": {"externalTemperature": 8.0, "hvacStatus": "off"}}\n'
),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"id": "UU1AAAAA555777123",
"attributes": {
"socThreshold": 30.0,
"hvacStatus": 1,
"hvacStatus": "off",
"lastUpdateTime": "2020-12-03T00:00:00Z"
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/kamereon/vehicle_data/hvac-status.zoe.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"data": {
"type": "Car",
"id": "VF1AAAAA555777999",
"attributes": { "externalTemperature": 8.0, "hvacStatus": 1 }
"attributes": { "externalTemperature": 8.0, "hvacStatus": "off" }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"data": {
"type": "Car",
"id": "VF1AAAAA555777999",
"attributes": { "socThreshold": 40, "hvacStatus": 2 }
"attributes": { "socThreshold": 40, "hvacStatus": "on" }
}
}
Loading