42
42
from chip .testing .matter_testing import MatterBaseTest , TestStep , async_test_body , default_matter_test_main
43
43
from modebase_cluster_check import ModeBaseClusterChecks
44
44
45
- CLUSTER = Clusters .RefrigeratorAndTemperatureControlledCabinetMode
45
+ CLUSTER = Clusters .DeviceEnergyManagementMode
46
46
47
47
48
48
class TC_DEMM_1_2 (MatterBaseTest , ModeBaseClusterChecks ):
@@ -60,8 +60,8 @@ def steps_TC_DEMM_1_2(self) -> list[TestStep]:
60
60
TestStep (1 , "Commissioning, already done" , is_commissioning = True ),
61
61
TestStep (2 , "TH reads from the DUT the SupportedModes attribute." ),
62
62
TestStep (3 , "TH reads from the DUT the CurrentMode attribute." ),
63
- TestStep (4 , "TH reads from the DUT the OnMode attribute." ),
64
- TestStep (5 , "TH reads from the DUT the StartUpMode attribute." )
63
+ # TestStep(4, "TH reads from the DUT the OnMode attribute."),
64
+ # TestStep(5, "TH reads from the DUT the StartUpMode attribute.")
65
65
]
66
66
return steps
67
67
@@ -82,28 +82,29 @@ async def test_TC_DEMM_1_2(self):
82
82
self .step (2 )
83
83
# Verify common checks for Mode Base as described in the TC-DEMM-1.2
84
84
supported_modes = await self .check_supported_modes_and_labels (endpoint = endpoint )
85
- # According to the spec, there should be at least one RapidCool or RapidFreeze tag in
85
+ # According to the spec, there should be at least on like
86
+ # No Optimization, Device Optimization, Local Optimization, or Grid Optimization tag in
86
87
# the ones supported.
87
- additional_tags = [CLUSTER .Enums .ModeTag .kRapidCool ,
88
- CLUSTER .Enums .ModeTag .kRapidFreeze ]
88
+ additional_tags = [CLUSTER .Enums .ModeTag .kNoOptimization ,
89
+ CLUSTER .Enums .ModeTag .kDeviceOptimization ]
89
90
self .check_tags_in_lists (supported_modes = supported_modes , required_tags = additional_tags )
90
91
91
92
self .step (3 )
92
93
# Verify that the CurrentMode attribute has a valid value.
93
94
mode = self .cluster .Attributes .CurrentMode
94
95
await self .read_and_check_mode (endpoint = endpoint , mode = mode , supported_modes = supported_modes )
95
96
96
- self .step (4 )
97
- # Verify that the OnMode attribute has a valid value or null.
98
- mode = self .cluster .Attributes .OnMode
99
- await self .read_and_check_mode (endpoint = endpoint , mode = mode ,
100
- supported_modes = supported_modes , is_nullable = True )
101
-
102
- self .step (5 )
103
- # Verify that the StartUpMode has a valid value or null
104
- mode = self .cluster .Attributes .StartUpMode
105
- await self .read_and_check_mode (endpoint = endpoint , mode = mode ,
106
- supported_modes = supported_modes , is_nullable = True )
97
+ # self.step(4)
98
+ # # Verify that the OnMode attribute has a valid value or null.
99
+ # mode = self.cluster.Attributes.OnMode
100
+ # await self.read_and_check_mode(endpoint=endpoint, mode=mode,
101
+ # supported_modes=supported_modes, is_nullable=True)
102
+
103
+ # self.step(5)
104
+ # # Verify that the StartUpMode has a valid value or null
105
+ # mode = self.cluster.Attributes.StartUpMode
106
+ # await self.read_and_check_mode(endpoint=endpoint, mode=mode,
107
+ # supported_modes=supported_modes, is_nullable=True)
107
108
108
109
109
110
if __name__ == "__main__" :
0 commit comments