Skip to content

Commit 36298b7

Browse files
restyled-commitsAlami-Amine
authored andcommitted
Restyled by autopep8
1 parent c42e737 commit 36298b7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/controller/python/chip/ChipDeviceCtrl.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -1030,7 +1030,6 @@ async def WaitForActive(self, nodeid, *, timeoutSeconds=30.0, stayActiveDuration
10301030
await WaitForCheckIn(ScopedNodeId(nodeid, self._fabricIndex), timeoutSeconds=timeoutSeconds)
10311031
return await self.SendCommand(nodeid, 0, Clusters.IcdManagement.Commands.StayActiveRequest(stayActiveDuration=stayActiveDurationMs))
10321032

1033-
10341033
async def GetConnectedDevice(self, nodeid, allowPASE: bool = True, timeoutMs: typing.Optional[int] = None,
10351034
payloadCapability: int = TransportPayloadCapability.MRP_PAYLOAD):
10361035
''' Gets an OperationalDeviceProxy or CommissioneeDeviceProxy for the specified Node.
@@ -1199,11 +1198,11 @@ async def SendCommand(self, nodeid: int, endpoint: int, payload: ClusterObjects.
11991198
'''
12001199
self.CheckIsActive()
12011200

1202-
eventLoop = asyncio.get_running_loop()
1203-
future = eventLoop.create_future()
1201+
eventLoop=asyncio.get_running_loop()
1202+
future=eventLoop.create_future()
12041203

1205-
device = await self.GetConnectedDevice(nodeid, timeoutMs=interactionTimeoutMs, payloadCapability=payloadCapability)
1206-
res = await ClusterCommand.SendCommand(
1204+
device=await self.GetConnectedDevice(nodeid, timeoutMs = interactionTimeoutMs, payloadCapability = payloadCapability)
1205+
res=await ClusterCommand.SendCommand(
12071206
future, eventLoop, responseType, device.deviceProxy, ClusterCommand.CommandPath(
12081207
EndpointId=endpoint,
12091208
ClusterId=payload.cluster_id,

0 commit comments

Comments
 (0)