Skip to content

Commit dd60908

Browse files
committed
Release v1.4.4: Synchronize test fixtures with new sensor structure
1 parent 80c7fe8 commit dd60908

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this project are documented in this file.
44

5+
## [1.4.4] - 2026-03-08
6+
7+
### Fixed
8+
- **CI Stability**: Synchronized test fixtures (`conftest.py`) with the new sensor count and diagnostic ordering to restore passing test states.
9+
510
## [1.4.3] - 2026-03-08
611

712
### Fixed

custom_components/geotab/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"iot_class": "cloud_polling",
88
"issue_tracker": "https://github.com/Syax89/geotab-hacs-integration/issues",
99
"requirements": ["mygeotab>=0.9.1,<1.0.0"],
10-
"version": "1.4.3"
10+
"version": "1.4.4"
1111
}
1212

tests/conftest.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@ def mock_geotab_api():
2020
# Mock for .get("Device")
2121
instance.get.return_value = [{"id": "device1", "name": "Test Vehicle", "deviceType": "GO9"}]
2222

23-
# Prepare mock results for multi_call: status, 24 diagnostics, faults, diagnostics_lookup, and trips
23+
# Prepare mock results for multi_call: status, 25 diagnostics, faults, diagnostics_lookup, and trips
2424
# Order MUST match api.py _blocking_fetch_all and const.py DIAGNOSTICS_TO_FETCH
2525
instance.multi_call.return_value = [
2626
# 0. Status
2727
[{"device": {"id": "device1"}, "latitude": 45.0, "longitude": 9.0, "isDriving": True, "speed": 50.0, "dateTime": "2026-03-08T10:00:00Z"}],
28-
# 1. diag_odometer (Adjustment)
29-
[{"device": {"id": "device1"}, "data": 100000, "dateTime": "9999-12-31T23:59:59Z"}],
28+
# 1. diag_odometer (AdjustmentId)
29+
[{"device": {"id": "device1"}, "data": 53203700, "dateTime": "9999-12-31T23:59:59Z"}],
3030
# 2. diag_odometer_raw (OdometerId)
31-
[{"device": {"id": "device1"}, "data": 100000, "dateTime": "2026-03-08T10:00:00Z"}],
31+
[{"device": {"id": "device1"}, "data": 52015700, "dateTime": "2026-03-08T10:00:00Z"}],
3232
# 3. diag_total_distance
33-
[{"device": {"id": "device1"}, "data": 100000, "dateTime": "2026-03-08T10:00:00Z"}],
33+
[{"device": {"id": "device1"}, "data": 53203700, "dateTime": "2026-03-08T10:00:00Z"}],
3434
# 4. diag_ignition
3535
[{"device": {"id": "device1"}, "data": 1, "dateTime": "2026-03-08T10:00:00Z"}],
3636
# 5. diag_voltage
3737
[{"device": {"id": "device1"}, "data": 13.5, "dateTime": "2026-03-08T10:00:00Z"}],
38-
# 6. diag_fuel_level
39-
[{"device": {"id": "device1"}, "data": 75.0, "dateTime": "2026-03-08T10:00:00Z"}],
40-
# 7. diag_fuel_level_raw
38+
# 6. diag_fuel_level (PercentageId)
4139
[{"device": {"id": "device1"}, "data": 38.03, "dateTime": "2026-03-08T10:00:00Z"}],
40+
# 7. diag_fuel_level_raw (FuelLevelId)
41+
[{"device": {"id": "device1"}, "data": 33.32, "dateTime": "2026-03-08T10:00:00Z"}],
4242
# 8. diag_fuel_rate
4343
[{"device": {"id": "device1"}, "data": 8.5, "dateTime": "2026-03-08T10:00:00Z"}],
4444
# 9. diag_rpm

0 commit comments

Comments
 (0)