feat: add completion_minutes and completion_time to state_keys in JSON fixtures

This commit is contained in:
Jeroen Hof
2026-07-24 08:10:17 +02:00
parent ab874797fc
commit 2c283218b0
6 changed files with 13 additions and 2 deletions
+2
View File
@@ -3,6 +3,8 @@
"alarm_code",
"auto_release_dry",
"child_lock",
"completion_minutes",
"completion_time",
"cycle",
"cycle_active",
"delay_start_hours",
+2
View File
@@ -3,6 +3,8 @@
"alarm_code",
"buzzer_sound",
"child_lock",
"completion_minutes",
"completion_time",
"cycle",
"cycle_active",
"delay_start_hours",
+2
View File
@@ -5,6 +5,8 @@
"bubble_soak",
"buzzer_sound",
"child_lock",
"completion_minutes",
"completion_time",
"cycle",
"cycle_active",
"delay_start_hours",
+2
View File
@@ -3,6 +3,8 @@
"alarm_code",
"bubble_soak",
"child_lock",
"completion_minutes",
"completion_time",
"cycle",
"cycle_active",
"delay_start_hours",
+2
View File
@@ -2,6 +2,8 @@
"state_keys": [
"alarm_code",
"child_lock",
"completion_minutes",
"completion_time",
"cycle_active",
"delay_start_hours",
"detergent_low",
+3 -2
View File
@@ -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):