We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f30256 commit 2a67212Copy full SHA for 2a67212
1 file changed
src/frequenz/client/assets/_client.py
@@ -267,7 +267,7 @@ async def list_microgrid_electrical_component_connections(
267
)
268
269
if raise_on_errors:
270
- connections: list[ComponentConnection | None] = []
+ connections: list[ComponentConnection] = []
271
exceptions: list[InvalidConnectionError] = []
272
for conn_pb in filter(bool, response.connections):
273
major_issues: list[str] = []
@@ -287,7 +287,7 @@ async def list_microgrid_electrical_component_connections(
287
connections.append(connection)
288
if exceptions:
289
raise InvalidConnectionErrorGroup(
290
- valid_connections=[c for c in connections if c is not None],
+ valid_connections=connections,
291
exceptions=exceptions,
292
293
return connections
0 commit comments