Skip to content

Commit

Permalink
Fix black issues
Browse files Browse the repository at this point in the history
  • Loading branch information
agners committed Dec 13, 2023
1 parent dd94424 commit 5df5209
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions matter_server/server/device_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ async def commission_with_code(self, code: str) -> MatterNodeData:
await fetch_certificates()
node_id = self._get_next_node_id()

LOGGER.info("Starting Matter commissioning with code using Node ID %s.", node_id)
LOGGER.info(
"Starting Matter commissioning with code using Node ID %s.", node_id
)
success = await self._call_sdk(
self.chip_controller.CommissionWithCode,
setupPayload=code,
Expand All @@ -180,15 +182,15 @@ async def commission_with_code(self, code: str) -> MatterNodeData:
retries = 3
while retries:
try:
LOGGER.info("Start interview of newly commissioned Node ID %s.", node_id)
LOGGER.info(
"Start interview of newly commissioned Node ID %s.", node_id
)
await self.interview_node(node_id)
except NodeInterviewFailed as err:
if retries <= 0:
raise err
retries -= 1
LOGGER.warning(
"Unable to interview Node %s: %s", node_id, err
)
LOGGER.warning("Unable to interview Node %s: %s", node_id, err)
await asyncio.sleep(5)
else:
break
Expand Down Expand Up @@ -229,7 +231,9 @@ async def commission_on_network(

node_id = self._get_next_node_id()

LOGGER.info("Starting Matter commissioning on network using Node ID %s.", node_id)
LOGGER.info(
"Starting Matter commissioning on network using Node ID %s.", node_id
)
success = await self._call_sdk(
self.chip_controller.CommissionOnNetwork,
nodeId=node_id,
Expand Down

0 comments on commit 5df5209

Please sign in to comment.