Skip to content

Commit 0b87c3a

Browse files
eduardiazfllucax
andauthored
Update src/frequenz/client/assets/_client.py
Co-authored-by: Leandro Lucarella <[email protected]> Signed-off-by: Eduardo Diaz <[email protected]>
1 parent 1fb3f3a commit 0b87c3a

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/frequenz/client/assets/_client.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,10 @@ async def list_microgrid_electrical_component_connections(
160160
"""
161161
request = assets_pb2.ListMicrogridElectricalComponentConnectionsRequest(
162162
microgrid_id=microgrid_id,
163+
source_component_ids.extend=source_component_ids,
164+
destination_component_ids=destination_component_ids,
163165
)
164166

165-
if source_component_ids:
166-
request.source_component_ids.extend(source_component_ids)
167-
168-
if destination_component_ids:
169-
request.destination_component_ids.extend(destination_component_ids)
170-
171167
response = await call_stub_method(
172168
self,
173169
lambda: self.stub.ListMicrogridElectricalComponentConnections(

0 commit comments

Comments
 (0)