Skip to content

Commit e601030

Browse files
committed
Fix linting issues
1 parent edc934d commit e601030

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/python_testing/TC_IDM_2_2.py

+18-18
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
import inspect
20-
import logging
20+
2121
from enum import IntFlag
2222
import chip.clusters as Clusters
2323
from chip.tlv import uint
@@ -26,7 +26,7 @@
2626
from chip.clusters.enum import MatterIntEnum
2727
from chip.clusters.ClusterObjects import ClusterObject
2828
from chip.clusters.Objects import Thermostat
29-
from chip.clusters.Objects import OccupancySensing
29+
3030
from matter_testing_support import MatterBaseTest, async_test_body, default_matter_test_main
3131
from mobly import asserts
3232

@@ -103,33 +103,33 @@ async def test_TC_IDM_2_2(self):
103103
self.all_supported_clusters = [cluster for cluster in Clusters.__dict__.values() if inspect.isclass(cluster) and issubclass(cluster, ClusterObjects.Cluster)]
104104
# For bool test
105105
boolean_state = Clusters.Objects.BooleanState
106-
boolean_state_attr = boolean_state.Attributes.StateValue
106+
107107
# For str test
108108
power_source = Clusters.Objects.PowerSource
109-
power_source_desc_attr = power_source.Attributes.Description
109+
110110
# For uint test
111111
microwave_oven_mode = Clusters.Objects.MicrowaveOvenMode
112-
microwave_oven_cur_mode_attr = microwave_oven_mode.Attributes.CurrentMode
112+
113113
# For int test
114114
device_energy_mgmt = Clusters.Objects.DeviceEnergyManagement
115-
device_energy_mgmt_absmin_attr = device_energy_mgmt.Attributes.AbsMinPower
115+
116116
# For float test
117117
unit_testing = Clusters.Objects.UnitTesting
118-
unit_testing_float_double_attr = unit_testing.Attributes.FloatDouble
119-
# For octet test
120-
unit_testing_oct_attr = unit_testing.Attributes.OctetString
121-
# For struct test
122-
struct_cluster = Clusters.Objects.GeneralCommissioning
123-
struct_attr = Clusters.Objects.GeneralCommissioning.Attributes.BasicCommissioningInfo
118+
119+
120+
121+
122+
123+
124124
# For list test
125125
energy_evse_mode = Clusters.Objects.EnergyEvseMode
126-
energy_evse_mode_attr = energy_evse_mode.Attributes.AcceptedCommandList
126+
127127
# For bitmap test
128128
occupancy_sensing = Clusters.Objects.OccupancySensing
129-
occupancy_sensor_bitmap_attr = occupancy_sensing.Attributes.OccupancySensorTypeBitmap
129+
130130
# occupancy_sensor_bitmap OccupancySensing.Bitmaps.OccupancySensorTypeBitmap
131131
# for enum test
132-
enum_class = Thermostat.Attributes.PresetTypes
132+
133133

134134
self.print_step(0, "Commissioning - already done")
135135

@@ -341,7 +341,7 @@ async def test_TC_IDM_2_2(self):
341341
# Verify on the TH that the DUT sends the status code UNSUPPORTED_ENDPOINT
342342
self.print_step(19, "Send the Read Request Message to the DUT to read any attribute to an unsupported Endpoint")
343343
# Seems to return only {} -- Is this a failure or the unintended behavior?
344-
read_request_19 = await self.default_controller.ReadAttribute(self.dut_node_id, [non_existent_endpoint])
344+
# read_request_19 = await self.default_controller.ReadAttribute(self.dut_node_id, [non_existent_endpoint])
345345

346346
# Step 20
347347
# TH sends the Read Request Message to the DUT to read any attribute to an unsupported cluster.
@@ -358,7 +358,7 @@ async def test_TC_IDM_2_2(self):
358358
# Select unsupported cluster
359359
unsupported_cluster = list(unsupported_clusters)[0]
360360
# Seems to return only {} (like unsupported endpoints)
361-
read_request_20 = await self.default_controller.ReadAttribute(self.dut_node_id, [unsupported_cluster])
361+
# read_request_20 = await self.default_controller.ReadAttribute(self.dut_node_id, [unsupported_cluster])
362362

363363
# Step 21
364364
# TH sends the Read Request Message to the DUT to read an unsupported attribute
@@ -379,7 +379,7 @@ async def test_TC_IDM_2_2(self):
379379
unsupported_attribute = list(unsupported_attributes_set)[0]
380380

381381
# Seems to return only {} (like unsupported endpoints and clusters)
382-
read_request_21 = await self.default_controller.ReadAttribute(self.dut_node_id, [unsupported_attribute])
382+
# read_request_21 = await self.default_controller.ReadAttribute(self.dut_node_id, [unsupported_attribute])
383383

384384
# Verify on the TH that the DUT sends the status code UNSUPPORTED_ATTRIBUTE
385385

0 commit comments

Comments
 (0)