Skip to content

Commit f3f405e

Browse files
committed
Resolving linting errors
1 parent 2c38877 commit f3f405e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/controller/python/matter/clusters/Attribute.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,9 +1065,9 @@ def TestOnlyWriteAttributeWithMismatchedTimedRequestField(future: Future, eventL
10651065
attributes: List[AttributeWriteRequest],
10661066
timedRequestTimeoutMs: int,
10671067
timedRequestFieldValue: bool,
1068-
interactionTimeoutMs: Union[None, int] = None,
1069-
busyWaitMs: Union[None, int] = None) -> PyChipError:
1070-
'''
1068+
interactionTimeoutMs: Union[None, int] = None,
1069+
busyWaitMs: Union[None, int] = None) -> PyChipError:
1070+
'''
10711071
ONLY TO BE USED FOR TEST: Writes attributes with decoupled Timed Request action and TimedRequest field.
10721072
This allows testing TIMED_REQUEST_MISMATCH scenarios:
10731073
- timedRequestTimeoutMs=0, timedRequestFieldValue=True: No action, but field=true (MISMATCH)

src/python_testing/TC_IDM_3_2.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async def find_timed_write_attribute(
6262
) -> tuple[Optional[int], Optional[type[ClusterObjects.ClusterAttributeDescriptor]]]:
6363
"""
6464
Find an attribute that requires timed write on the actual device
65-
Uses the wildcard read data that's already in endpoints_data
65+
Uses the wildcard read data that's already in endpoints_data
6666
"""
6767
logging.info(f"Searching for timed write attributes across {len(endpoints_data)} endpoints")
6868

@@ -344,20 +344,20 @@ async def test_TC_IDM_3_2(self):
344344
if timed_attr:
345345
self.step(7)
346346
'''
347-
TH sends the WriteRequestMessage to the DUT to modify the value of a specific attribute data that needs
347+
TH sends the WriteRequestMessage to the DUT to modify the value of a specific attribute data that needs
348348
timed write transaction to write and this action is not part of a timed write transaction.
349-
349+
350350
This step tests the following 3 timed write error scenarios:
351351
1. NEEDS_TIMED_INTERACTION: Writing timed-write-required attribute without timed transaction
352352
2. TIMED_REQUEST_MISMATCH: Writing with TimedRequest flag but no actual timed transaction
353353
(Timed Request ACTION = No, TimedRequest FLAG = True)
354354
3. TIMED_REQUEST_MISMATCH: Writing with timed action performed but TimedRequest flag set to false
355355
(Timed Request ACTION = Yes, TimedRequest FLAG = False)
356-
356+
357357
Understanding the distinction:
358358
- TIMED REQUEST ACTION: The TimedRequest protocol message sent BEFORE the WriteRequest
359359
- TIMEDREQUEST FLAG: A boolean field IN the WriteRequest message itself
360-
360+
361361
Normal timed write: Action=Yes, Flag=True (both must match)
362362
'''
363363

0 commit comments

Comments
 (0)