Skip to content

Commit cfdf92f

Browse files
committed
fixup! Implement ListConnections
1 parent e80fee5 commit cfdf92f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/frequenz/client/microgrid/component/_connection_proto.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ def component_connection_from_proto(
2424

2525
source_component_id = ComponentId(message.source_component_id)
2626
destination_component_id = ComponentId(message.destination_component_id)
27+
if source_component_id == destination_component_id:
28+
major_issues.append(
29+
f"source and destination are the same: {source_component_id}",
30+
)
31+
2732
lifetime = _get_operational_lifetime_from_proto(
2833
message, major_issues=major_issues, minor_issues=minor_issues
2934
)

0 commit comments

Comments
 (0)