Skip to content

Commit 46993e1

Browse files
Fix restyle
1 parent 28d683d commit 46993e1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/python_testing/matter_testing_support.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def __call__(self, path: TypedAttributePath, transaction: SubscriptionTransactio
320320
"""This is the subscription callback when an attribute is updated.
321321
It checks the passed in attribute is the same as the subscribed to attribute and
322322
then posts it into the queue for later processing."""
323-
323+
324324
asserts.assert_equal(path.AttributeType, self._expected_attribute,
325325
f"[AttributeChangeCallback] Attribute mismatch. Expected: {self._expected_attribute}, received: {path.AttributeType}")
326326
logging.info(f"[AttributeChangeCallback] Attribute update callback for {path.AttributeType}")
@@ -331,13 +331,15 @@ def wait_for_report(self):
331331
try:
332332
path, transaction = self._output.get(block=True, timeout=10)
333333
except queue.Empty:
334-
asserts.fail(f"[AttributeChangeCallback] Failed to receive a report for the {self._expected_attribute} attribute change")
334+
asserts.fail(
335+
f"[AttributeChangeCallback] Failed to receive a report for the {self._expected_attribute} attribute change")
335336

336337
asserts.assert_equal(path.AttributeType, self._expected_attribute,
337338
f"[AttributeChangeCallback] Received incorrect report. Expected: {self._expected_attribute}, received: {path.AttributeType}")
338339
try:
339340
attribute_value = transaction.GetAttribute(path)
340-
logging.info(f"[AttributeChangeCallback] Got attribute subscription report. Attribute {path.AttributeType}. Updated value: {attribute_value}. SubscriptionId: {transaction.subscriptionId}")
341+
logging.info(
342+
f"[AttributeChangeCallback] Got attribute subscription report. Attribute {path.AttributeType}. Updated value: {attribute_value}. SubscriptionId: {transaction.subscriptionId}")
341343
except KeyError:
342344
asserts.fail("[AttributeChangeCallback] Attribute {expected_attribute} not found in returned report")
343345

0 commit comments

Comments
 (0)