@@ -248,7 +248,7 @@ async def TEST_TC_OPSTATE_BASE_1_1(self, endpoint=1, cluster_revision=1, feature
248
248
attributes .ClusterRevision .attribute_id
249
249
]
250
250
251
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
251
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
252
252
expected_value .append (attributes .CountdownTime .attribute_id )
253
253
254
254
await self .read_and_expect_array_contains (endpoint = endpoint ,
@@ -347,7 +347,7 @@ async def TEST_TC_OPSTATE_BASE_2_1(self, endpoint=1):
347
347
348
348
# STEP 2: TH reads from the DUT the PhaseList attribute
349
349
self .step (2 )
350
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .PhaseList ):
350
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .PhaseList ):
351
351
phase_list = await self .read_expect_success (endpoint = endpoint ,
352
352
attribute = attributes .PhaseList )
353
353
if phase_list is not NullValue :
@@ -357,7 +357,7 @@ async def TEST_TC_OPSTATE_BASE_2_1(self, endpoint=1):
357
357
358
358
# STEP 3: TH reads from the DUT the CurrentPhase attribute
359
359
self .step (3 )
360
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .CurrentPhase ):
360
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .CurrentPhase ):
361
361
current_phase = await self .read_expect_success (endpoint = endpoint ,
362
362
attribute = attributes .CurrentPhase )
363
363
if (phase_list == NullValue ) or (not phase_list ):
@@ -369,7 +369,7 @@ async def TEST_TC_OPSTATE_BASE_2_1(self, endpoint=1):
369
369
370
370
# STEP 4: TH reads from the DUT the CountdownTime attribute
371
371
self .step (4 )
372
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
372
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
373
373
countdown_time = await self .read_expect_success (endpoint = endpoint ,
374
374
attribute = attributes .CountdownTime )
375
375
if countdown_time is not NullValue :
@@ -378,7 +378,7 @@ async def TEST_TC_OPSTATE_BASE_2_1(self, endpoint=1):
378
378
379
379
# STEP 5: TH reads from the DUT the OperationalStateList attribute
380
380
self .step (5 )
381
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .OperationalStateList ):
381
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .OperationalStateList ):
382
382
operational_state_list = await self .read_expect_success (endpoint = endpoint ,
383
383
attribute = attributes .OperationalStateList )
384
384
defined_states = [state .value for state in cluster .Enums .OperationalStateEnum
@@ -464,7 +464,7 @@ async def TEST_TC_OPSTATE_BASE_2_1(self, endpoint=1):
464
464
465
465
# STEP 7: TH reads from the DUT the OperationalError attribute
466
466
self .step (7 )
467
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .OperationalError ):
467
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .OperationalError ):
468
468
operational_error = await self .read_expect_success (endpoint = endpoint ,
469
469
attribute = attributes .OperationalError )
470
470
# Defined Errors
@@ -600,7 +600,7 @@ async def TEST_TC_OPSTATE_BASE_2_2(self, endpoint=1):
600
600
601
601
# STEP 3: TH reads from the DUT the OperationalStateList attribute
602
602
self .step (3 )
603
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .OperationalStateList ):
603
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .OperationalStateList ):
604
604
operational_state_list = await self .read_expect_success (endpoint = endpoint ,
605
605
attribute = attributes .OperationalStateList )
606
606
@@ -628,15 +628,15 @@ async def TEST_TC_OPSTATE_BASE_2_2(self, endpoint=1):
628
628
629
629
# STEP 6: TH reads from the DUT the OperationalError attribute
630
630
self .step (6 )
631
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .OperationalError ):
631
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .OperationalError ):
632
632
await self .read_and_expect_property_value (endpoint = endpoint ,
633
633
attribute = attributes .OperationalError ,
634
634
attr_property = "errorStateID" ,
635
635
expected_value = cluster .Enums .ErrorStateEnum .kNoError )
636
636
637
637
# STEP 7: TH reads from the DUT the CountdownTime attribute
638
638
self .step (7 )
639
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
639
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
640
640
initial_countdown_time = await self .read_expect_success (endpoint = endpoint ,
641
641
attribute = attributes .CountdownTime )
642
642
if initial_countdown_time is not NullValue :
@@ -645,7 +645,7 @@ async def TEST_TC_OPSTATE_BASE_2_2(self, endpoint=1):
645
645
646
646
# STEP 8: TH reads from the DUT the PhaseList attribute
647
647
self .step (8 )
648
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .PhaseList ):
648
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .PhaseList ):
649
649
phase_list = await self .read_expect_success (endpoint = endpoint ,
650
650
attribute = attributes .PhaseList )
651
651
phase_list_len = 0
@@ -656,7 +656,7 @@ async def TEST_TC_OPSTATE_BASE_2_2(self, endpoint=1):
656
656
657
657
# STEP 9: TH reads from the DUT the CurrentPhase attribute
658
658
self .step (9 )
659
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .CurrentPhase ):
659
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .CurrentPhase ):
660
660
current_phase = await self .read_expect_success (endpoint = endpoint ,
661
661
attribute = attributes .CurrentPhase )
662
662
if (phase_list == NullValue ) or (not phase_list ):
@@ -669,12 +669,12 @@ async def TEST_TC_OPSTATE_BASE_2_2(self, endpoint=1):
669
669
670
670
# STEP 10: TH waits for {PIXIT.WAITTIME.COUNTDOWN}
671
671
self .step (10 )
672
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
672
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
673
673
time .sleep (wait_time )
674
674
675
675
# STEP 11: TH reads from the DUT the CountdownTime attribute
676
676
self .step (11 )
677
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
677
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
678
678
countdown_time = await self .read_expect_success (endpoint = endpoint ,
679
679
attribute = attributes .CountdownTime )
680
680
@@ -815,7 +815,7 @@ async def TEST_TC_OPSTATE_BASE_2_3(self, endpoint=1):
815
815
816
816
# STEP 6: TH reads from the DUT the CountdownTime attribute
817
817
self .step (6 )
818
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
818
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
819
819
initial_countdown_time = await self .read_expect_success (endpoint = endpoint ,
820
820
attribute = attributes .CountdownTime )
821
821
if initial_countdown_time is not NullValue :
@@ -829,7 +829,7 @@ async def TEST_TC_OPSTATE_BASE_2_3(self, endpoint=1):
829
829
830
830
# STEP 8: TH reads from the DUT the CountdownTime attribute
831
831
self .step (8 )
832
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
832
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
833
833
countdown_time = await self .read_expect_success (endpoint = endpoint ,
834
834
attribute = attributes .CountdownTime )
835
835
@@ -1061,7 +1061,7 @@ async def TEST_TC_OPSTATE_BASE_2_5(self, endpoint=1):
1061
1061
1062
1062
# STEP 5: TH reads from the DUT the CountdownTime attribute
1063
1063
self .step (5 )
1064
- if await self .attributes_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
1064
+ if await self .attribute_guard (endpoint = endpoint , attribute = attributes .CountdownTime ):
1065
1065
initial_countdown_time = await self .read_expect_success (endpoint = endpoint ,
1066
1066
attribute = attributes .CountdownTime )
1067
1067
0 commit comments