Skip to content

Commit 07607a3

Browse files
committed
Resolving some additional linting errors
1 parent 6ff1afa commit 07607a3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/python_testing/support_modules/idm_support.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,9 @@ def verify_attribute_path(self, read_response: dict, path: AttributePath):
271271
# Extra assertion to ensure cluster_id exists before accessing (defense in depth)
272272
asserts.assert_in(cluster_id, read_response.tlvAttributes[ep],
273273
f"Cluster {cluster_id} not found in endpoint {ep}")
274-
returned_attrs = sorted(list(read_response.tlvAttributes[ep][cluster_id].keys()))
275-
attr_list = sorted(list(read_response.tlvAttributes[ep][cluster_id][
276-
ClusterObjects.ALL_CLUSTERS[cluster_id].Attributes.AttributeList.attribute_id]))
274+
returned_attrs = sorted(read_response.tlvAttributes[ep][cluster_id].keys())
275+
attr_list = sorted(read_response.tlvAttributes[ep][cluster_id][
276+
ClusterObjects.ALL_CLUSTERS[cluster_id].Attributes.AttributeList.attribute_id])
277277
asserts.assert_equal(
278278
returned_attrs,
279279
attr_list,
@@ -328,9 +328,9 @@ def verify_all_endpoints_clusters(self, read_response: dict):
328328
if global_attribute_ids.cluster_id_type(cluster) != global_attribute_ids.ClusterIdType.kStandard:
329329
continue
330330

331-
returned_attrs = sorted(list(read_response.tlvAttributes[endpoint][cluster].keys()))
332-
attr_list = sorted(list(read_response.tlvAttributes[endpoint][cluster][
333-
ClusterObjects.ALL_CLUSTERS[cluster].Attributes.AttributeList.attribute_id]))
331+
returned_attrs = sorted(read_response.tlvAttributes[endpoint][cluster].keys())
332+
attr_list = sorted(read_response.tlvAttributes[endpoint][cluster][
333+
ClusterObjects.ALL_CLUSTERS[cluster].Attributes.AttributeList.attribute_id])
334334
asserts.assert_equal(returned_attrs, attr_list,
335335
f"Mismatch for {cluster} at endpoint {endpoint}")
336336

@@ -396,7 +396,7 @@ async def read_cluster_all_endpoints(self, cluster):
396396
if global_attribute_ids.cluster_id_type(cluster.id) == global_attribute_ids.ClusterIdType.kStandard:
397397
returned_attrs = sorted([x.attribute_id for x in read_request[endpoint][cluster].keys()
398398
if x != Clusters.Attribute.DataVersion])
399-
attr_list = sorted(list(read_request[endpoint][cluster][cluster.Attributes.AttributeList]))
399+
attr_list = sorted(read_request[endpoint][cluster][cluster.Attributes.AttributeList])
400400
asserts.assert_equal(
401401
returned_attrs,
402402
attr_list,

0 commit comments

Comments
 (0)