diff --git a/matter_server/server/device_controller.py b/matter_server/server/device_controller.py index 7c765b7c..03c256b7 100644 --- a/matter_server/server/device_controller.py +++ b/matter_server/server/device_controller.py @@ -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, @@ -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 @@ -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,