feat: add completion_minutes and completion_time to state_keys in JSON fixtures
This commit is contained in:
1 parent
ab874797fc
commit
2c283218b0
6 files changed
+13
-2
No files matched your search
+2
@@ -3,6 +3,8 @@
|
|||||||
"alarm_code",
|
"alarm_code",
|
||||||
"auto_release_dry",
|
"auto_release_dry",
|
||||||
"child_lock",
|
"child_lock",
|
||||||
|
"completion_minutes",
|
||||||
|
"completion_time",
|
||||||
"cycle",
|
"cycle",
|
||||||
"cycle_active",
|
"cycle_active",
|
||||||
"delay_start_hours",
|
"delay_start_hours",
|
||||||
|
|||||||
Vendored
+2
@@ -3,6 +3,8 @@
|
|||||||
"alarm_code",
|
"alarm_code",
|
||||||
"buzzer_sound",
|
"buzzer_sound",
|
||||||
"child_lock",
|
"child_lock",
|
||||||
|
"completion_minutes",
|
||||||
|
"completion_time",
|
||||||
"cycle",
|
"cycle",
|
||||||
"cycle_active",
|
"cycle_active",
|
||||||
"delay_start_hours",
|
"delay_start_hours",
|
||||||
|
|||||||
Vendored
+2
@@ -5,6 +5,8 @@
|
|||||||
"bubble_soak",
|
"bubble_soak",
|
||||||
"buzzer_sound",
|
"buzzer_sound",
|
||||||
"child_lock",
|
"child_lock",
|
||||||
|
"completion_minutes",
|
||||||
|
"completion_time",
|
||||||
"cycle",
|
"cycle",
|
||||||
"cycle_active",
|
"cycle_active",
|
||||||
"delay_start_hours",
|
"delay_start_hours",
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
"alarm_code",
|
"alarm_code",
|
||||||
"bubble_soak",
|
"bubble_soak",
|
||||||
"child_lock",
|
"child_lock",
|
||||||
|
"completion_minutes",
|
||||||
|
"completion_time",
|
||||||
"cycle",
|
"cycle",
|
||||||
"cycle_active",
|
"cycle_active",
|
||||||
"delay_start_hours",
|
"delay_start_hours",
|
||||||
|
|||||||
+2
@@ -2,6 +2,8 @@
|
|||||||
"state_keys": [
|
"state_keys": [
|
||||||
"alarm_code",
|
"alarm_code",
|
||||||
"child_lock",
|
"child_lock",
|
||||||
|
"completion_minutes",
|
||||||
|
"completion_time",
|
||||||
"cycle_active",
|
"cycle_active",
|
||||||
"delay_start_hours",
|
"delay_start_hours",
|
||||||
"detergent_low",
|
"detergent_low",
|
||||||
|
|||||||
@@ -4,10 +4,11 @@ from custom_components.localthings.registry.capabilities import laundry
|
|||||||
|
|
||||||
class TestCourseHelpers:
|
class TestCourseHelpers:
|
||||||
def test_parses_edit_course_list(self):
|
def test_parses_edit_course_list(self):
|
||||||
raw = 'EditCourseList_1C1D211B1E29243328262722202325322F2E30662D8F96'
|
raw = 'EditCourseList_1C1D211B1E29243328262722202325322F2E30662D8F962b2a'
|
||||||
assert laundry.parse_edit_course_list(raw) == [
|
assert laundry.parse_edit_course_list(raw) == [
|
||||||
'1C', '1D', '21', '1B', '1E', '29', '24', '33', '28', '26', '27',
|
'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):
|
def test_parse_edit_course_list_handles_missing_or_malformed(self):
|
||||||
|
|||||||
Reference in new issue
Block a user