@@ -252,7 +252,7 @@ def pics_TC_FAN_3_1(self) -> list[str]:
252
252
@async_test_body
253
253
async def test_TC_FAN_3_1 (self ):
254
254
# Setup
255
- ep = self .get_endpoint (default = 1 )
255
+ endpoint = self .get_endpoint (default = 1 )
256
256
cluster = Clusters .FanControl
257
257
258
258
# *** STEP 1 ***
@@ -262,38 +262,38 @@ async def test_TC_FAN_3_1(self):
262
262
# *** STEP 2 ***
263
263
# TH checks for the existence of the SpeedSetting feature
264
264
self .step (2 )
265
- feature_map = await self .read_setting (ep , cluster .Attributes .FeatureMap )
265
+ feature_map = await self .read_setting (endpoint , cluster .Attributes .FeatureMap )
266
266
self .supports_speed = bool (feature_map & cluster .Bitmaps .Feature .kMultiSpeed )
267
267
268
268
# *** STEP 3 ***
269
269
# TH subscribes to the DUT's FanControl cluster
270
270
self .step (3 )
271
271
self .attribute_subscription = ClusterAttributeChangeAccumulator (cluster )
272
- await self .attribute_subscription .start (self .default_controller , self .dut_node_id , ep )
272
+ await self .attribute_subscription .start (self .default_controller , self .dut_node_id , endpoint )
273
273
274
274
# TH writes to the DUT the PercentSetting attribute iteratively within
275
275
# a range of 1 to 100 one at a time in ascending order
276
276
# Verifies that FanMode and SpeedSetting values (if supported) are being
277
- # updated accordingly (greater or less than the previous values)
278
- await self .verify_fan_control_attribute_values (ep , cluster .Attributes .PercentSetting , OrderEnum .Ascending )
277
+ # updated accordingly (current values greater than previous values)
278
+ await self .verify_fan_control_attribute_values (endpoint , cluster .Attributes .PercentSetting , OrderEnum .Ascending )
279
279
280
280
# TH writes to the DUT the PercentSetting attribute iteratively within
281
- # a range of 1 to 100 one at a time in descending order
281
+ # a range of 100 to 0 one at a time in descending order
282
282
# Verifies that FanMode and SpeedSetting values (if supported) are being
283
- # updated accordingly (greater or less than the previous values)
284
- await self .verify_fan_control_attribute_values (ep , cluster .Attributes .PercentSetting , OrderEnum .Descending )
283
+ # updated accordingly (current values less than previous values)
284
+ await self .verify_fan_control_attribute_values (endpoint , cluster .Attributes .PercentSetting , OrderEnum .Descending )
285
285
286
286
# TH writes to the DUT the FanMode attribute iteratively within a range of
287
287
# the number of available fan modes one at a time in ascending order
288
288
# Verifies that PercentSetting and SpeedSetting values (if supported) are being
289
- # updated accordingly (greater or less than the previous values)
290
- await self .verify_fan_control_attribute_values (ep , cluster .Attributes .FanMode , OrderEnum .Ascending )
289
+ # updated accordingly (current values greater than previous values)
290
+ await self .verify_fan_control_attribute_values (endpoint , cluster .Attributes .FanMode , OrderEnum .Ascending )
291
291
292
292
# TH writes to the DUT the FanMode attribute iteratively within a range of
293
293
# the number of available fan modes one at a time in descending order
294
294
# Verifies that PercentSetting and SpeedSetting values (if supported) are being
295
- # updated accordingly (greater or less than the previous values)
296
- await self .verify_fan_control_attribute_values (ep , cluster .Attributes .FanMode , OrderEnum .Descending )
295
+ # updated accordingly (current values less than previous values)
296
+ await self .verify_fan_control_attribute_values (endpoint , cluster .Attributes .FanMode , OrderEnum .Descending )
297
297
298
298
299
299
if __name__ == "__main__" :
0 commit comments