From 89366840b443df99e61ec9e85f490ee9be16fb02 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 15 Jun 2026 13:09:54 +0200 Subject: [PATCH 1/2] Document electrical component connection restrictions Connections should not have the same source and destination. Signed-off-by: Leandro Lucarella --- .../electrical_components/electrical_components.proto | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/proto/frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto b/proto/frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto index 3509039c..cb534aee 100644 --- a/proto/frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto +++ b/proto/frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto @@ -689,6 +689,11 @@ message ElectricalComponent { //  tracking the changes over time to a microgrid, providing insights into //  when and how the microgrid infrastructure has been modified. // +// !!! info "No Self-Connections" +// `source_electrical_component_id` MUST NOT equal +// `destination_electrical_component_id`. A component cannot be connected +// to itself. +// message ElectricalComponentConnection { // Unique identifier of the component where the connection originates. This is // aligned with the direction of current flow away from the grid connection From e9186b1eb2225b8688821ed166528aef675f5928 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Mon, 15 Jun 2026 13:10:16 +0200 Subject: [PATCH 2/2] Fix info indentation Signed-off-by: Leandro Lucarella --- .../electrical_components/electrical_components.proto | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proto/frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto b/proto/frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto index cb534aee..287ce345 100644 --- a/proto/frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto +++ b/proto/frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto @@ -685,9 +685,9 @@ message ElectricalComponent { //  (https://en.wikipedia.org/wiki/Passive_sign_convention). // // !!! info "Historical Data" -//  The timestamps of when a connection was created and terminated allows for -//  tracking the changes over time to a microgrid, providing insights into -//  when and how the microgrid infrastructure has been modified. +// The timestamps of when a connection was created and terminated allows for +// tracking the changes over time to a microgrid, providing insights into +// when and how the microgrid infrastructure has been modified. // // !!! info "No Self-Connections" // `source_electrical_component_id` MUST NOT equal