From 2c283218b0cb5807c4ee7ecf467ee513ffda6880 Mon Sep 17 00:00:00 2001 From: Jeroen Hof <32430809+Metal-Eagle@users.noreply.github.com> Date: Fri, 24 Jul 2026 08:10:17 +0200 Subject: [PATCH] feat: add completion_minutes and completion_time to state_keys in JSON fixtures --- tests/fixtures/golden/dishwasher.json | 2 ++ tests/fixtures/golden/dryer.json | 2 ++ tests/fixtures/golden/washer.json | 2 ++ tests/fixtures/golden/washer_dryer_combo.json | 2 ++ tests/fixtures/golden/washer_flexwash.json | 2 ++ tests/test_laundry_capabilities.py | 5 +++-- 6 files changed, 13 insertions(+), 2 deletions(-) diff --git a/tests/fixtures/golden/dishwasher.json b/tests/fixtures/golden/dishwasher.json index 2a50531..10c51a0 100644 --- a/tests/fixtures/golden/dishwasher.json +++ b/tests/fixtures/golden/dishwasher.json @@ -3,6 +3,8 @@ "alarm_code", "auto_release_dry", "child_lock", + "completion_minutes", + "completion_time", "cycle", "cycle_active", "delay_start_hours", diff --git a/tests/fixtures/golden/dryer.json b/tests/fixtures/golden/dryer.json index 97f17c5..2fc8e2d 100644 --- a/tests/fixtures/golden/dryer.json +++ b/tests/fixtures/golden/dryer.json @@ -3,6 +3,8 @@ "alarm_code", "buzzer_sound", "child_lock", + "completion_minutes", + "completion_time", "cycle", "cycle_active", "delay_start_hours", diff --git a/tests/fixtures/golden/washer.json b/tests/fixtures/golden/washer.json index b48cd1b..d814514 100644 --- a/tests/fixtures/golden/washer.json +++ b/tests/fixtures/golden/washer.json @@ -5,6 +5,8 @@ "bubble_soak", "buzzer_sound", "child_lock", + "completion_minutes", + "completion_time", "cycle", "cycle_active", "delay_start_hours", diff --git a/tests/fixtures/golden/washer_dryer_combo.json b/tests/fixtures/golden/washer_dryer_combo.json index d2bab38..5cc40fd 100644 --- a/tests/fixtures/golden/washer_dryer_combo.json +++ b/tests/fixtures/golden/washer_dryer_combo.json @@ -3,6 +3,8 @@ "alarm_code", "bubble_soak", "child_lock", + "completion_minutes", + "completion_time", "cycle", "cycle_active", "delay_start_hours", diff --git a/tests/fixtures/golden/washer_flexwash.json b/tests/fixtures/golden/washer_flexwash.json index 6db1e00..7230480 100644 --- a/tests/fixtures/golden/washer_flexwash.json +++ b/tests/fixtures/golden/washer_flexwash.json @@ -2,6 +2,8 @@ "state_keys": [ "alarm_code", "child_lock", + "completion_minutes", + "completion_time", "cycle_active", "delay_start_hours", "detergent_low", diff --git a/tests/test_laundry_capabilities.py b/tests/test_laundry_capabilities.py index 8960608..810f046 100644 --- a/tests/test_laundry_capabilities.py +++ b/tests/test_laundry_capabilities.py @@ -4,10 +4,11 @@ from custom_components.localthings.registry.capabilities import laundry class TestCourseHelpers: def test_parses_edit_course_list(self): - raw = 'EditCourseList_1C1D211B1E29243328262722202325322F2E30662D8F96' + raw = 'EditCourseList_1C1D211B1E29243328262722202325322F2E30662D8F962b2a' assert laundry.parse_edit_course_list(raw) == [ '1C', '1D', '21', '1B', '1E', '29', '24', '33', '28', '26', '27', - '22', '20', '23', '25', '32', '2F', '2E', '30', '66', '2D', '8F', '96' + '22', '20', '23', '25', '32', '2F', '2E', '30', '66', '2D', '8F', '96', + '2b', '2a' ] def test_parse_edit_course_list_handles_missing_or_malformed(self):