We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f95d838 commit b5e92beCopy full SHA for b5e92be
src/frequenz/client/assets/_client.py
@@ -175,7 +175,9 @@ async def list_microgrid_electrical_component_connections(
175
method_name="ListMicrogridElectricalComponentConnections",
176
)
177
178
- return [
179
- component_connection_from_proto(connection)
180
- for connection in response.connections
181
- ]
+ return list(
+ map(
+ component_connection_from_proto,
+ filter(bool, response.connections),
182
+ )
183
0 commit comments