Skip to content

Commit 49ac745

Browse files
Remove ElectricalComponentStatus enum
The `ElectricalComponentStatus` enum has been removed in favour of the `ElectricalComponentControlMode` enum. Signed-off-by: Tiyash Basu <[email protected]> # Conflicts: # proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto
1 parent b6493eb commit 49ac745

File tree

2 files changed

+3
-21
lines changed

2 files changed

+3
-21
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## Upgrading
88

9-
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
9+
- The `ElectricalComponentStatus` enum has ben removed in favour of the `ElectricalComponentControlMode` enum.
1010

1111
## New Features
1212

proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -87,24 +87,6 @@ enum ElectricalComponentCategory {
8787
ELECTRICAL_COMPONENT_CATEGORY_HVAC = 14;
8888
}
8989

90-
// ElectricalComponentStatus defines the possible statuses for a component.
91-
//
92-
// !!! note
93-
// The status indicates the status set by the user via the user interface.
94-
// The status is not yet included in the Component messages and should be
95-
// added.
96-
//
97-
enum ElectricalComponentStatus {
98-
// The status is unspecified. This should not be used.
99-
ELECTRICAL_COMPONENT_STATUS_UNSPECIFIED = 0;
100-
101-
// The component is active.
102-
ELECTRICAL_COMPONENT_STATUS_ACTIVE = 1;
103-
104-
// The component is inactive.
105-
ELECTRICAL_COMPONENT_STATUS_INACTIVE = 2;
106-
}
107-
10890
// Enum to represent the various states that a component can be in.
10991
// This enum is unified across all component categories for consistency.
11092
enum ElectricalComponentStateCode {
@@ -405,8 +387,8 @@ message ElectricalComponent {
405387
// The model name of the component.
406388
string model_name = 7;
407389

408-
// The status of the component.
409-
ElectricalComponentStatus status = 8;
390+
// The control mode of the component.
391+
ElectricalComponentControlMode control_mode = 8;
410392

411393
// The operational lifetime of the component.
412394
frequenz.api.common.v1.microgrid.Lifetime operational_lifetime = 9;

0 commit comments

Comments
 (0)