Skip to content

Commit

Permalink
Fix HVAC status endpoint (#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
epenet authored Jun 3, 2024
1 parent 34a4b57 commit a2c3a28
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
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[str]
hvacStatus: Optional[int]
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 on\n"
"HVAC status 2\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 off\n"
"HVAC status 1\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 off\n"
"HVAC status 1\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 on\n"
"HVAC status 2\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": "off"}}\n'
'"hvac-status": {"externalTemperature": 8.0, "hvacStatus": 1}}\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": "off",
"hvacStatus": 1,
"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": "off" }
"attributes": { "externalTemperature": 8.0, "hvacStatus": 1 }
}
}
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": "on" }
"attributes": { "socThreshold": 40, "hvacStatus": 2 }
}
}

0 comments on commit a2c3a28

Please sign in to comment.