Skip to content

Commit 8467617

Browse files
Fix ElectricalComponentCategory enum numbering
This commit removes the unnecessary gap in numbering in the `ElectricalComponentCategory` enum in the `electrical_components.proto` file. Signed-off-by: Tiyash Basu <[email protected]>
1 parent ca51019 commit 8467617

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
- Added new message `CommunicationComponentDiagnostic` to represent warnings and errors in microgrid communication components.
2323
- Added new message `CommunicationComponentStateSnapshot` to represent the state of communication components.
2424
- Added new message definitions for streaming events (Deleted, Created, Updated)
25+
- Remove unnecessary gap in numbering in the `ElectricalComponentCategory` enum.
2526

2627
## Bug Fixes
2728

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,43 +48,43 @@ enum ElectricalComponentCategory {
4848
ELECTRICAL_COMPONENT_CATEGORY_EV_CHARGER = 6;
4949

5050
// A crypto miner.
51-
ELECTRICAL_COMPONENT_CATEGORY_CRYPTO_MINER = 8;
51+
ELECTRICAL_COMPONENT_CATEGORY_CRYPTO_MINER = 7;
5252

5353
// An electrolyzer for converting water into hydrogen and oxygen.
54-
ELECTRICAL_COMPONENT_CATEGORY_ELECTROLYZER = 9;
54+
ELECTRICAL_COMPONENT_CATEGORY_ELECTROLYZER = 8;
5555

5656
// A heat and power combustion plant (CHP stands for combined heat and power).
57-
ELECTRICAL_COMPONENT_CATEGORY_CHP = 10;
57+
ELECTRICAL_COMPONENT_CATEGORY_CHP = 9;
5858

5959
// A relay.
6060
// Relays generally have two states: open (connected) and closed
6161
// (disconnected).
6262
// They are generally placed in front of a component, e.g., an inverter, to
6363
// control whether the component is connected to the grid or not.
64-
ELECTRICAL_COMPONENT_CATEGORY_RELAY = 11;
64+
ELECTRICAL_COMPONENT_CATEGORY_RELAY = 10;
6565

6666
// A precharge module.
6767
// Precharging involves gradually ramping up the DC voltage to prevent any
6868
// potential damage to sensitive electrical components like capacitors.
6969
// While many inverters and batteries come equipped with in-built precharging
7070
// mechanisms, some may lack this feature. In such cases, we need to use
7171
// external precharging modules.
72-
ELECTRICAL_COMPONENT_CATEGORY_PRECHARGER = 12;
72+
ELECTRICAL_COMPONENT_CATEGORY_PRECHARGER = 11;
7373

7474
// A fuse.
7575
// Fuses are used to protect electrical components from overcurrents.
76-
ELECTRICAL_COMPONENT_CATEGORY_FUSE = 13;
76+
ELECTRICAL_COMPONENT_CATEGORY_FUSE = 12;
7777

7878
// A voltage transformer.
7979
// Voltage transformers are used to step up or step down the voltage, keeping
8080
// the power somewhat constant by increasing or decreasing the current.
8181
// If voltage is stepped up, current is stepped down, and vice versa.
8282
// Note that voltage transformers have efficiency losses, so the output power
8383
// is always less than the input power.
84-
ELECTRICAL_COMPONENT_CATEGORY_VOLTAGE_TRANSFORMER = 14;
84+
ELECTRICAL_COMPONENT_CATEGORY_VOLTAGE_TRANSFORMER = 13;
8585

8686
// An HVAC (Heating, Ventilation, and Air Conditioning) system.
87-
ELECTRICAL_COMPONENT_CATEGORY_HVAC = 15;
87+
ELECTRICAL_COMPONENT_CATEGORY_HVAC = 14;
8888
}
8989

9090
// ElectricalComponentStatus defines the possible statuses for a component.

0 commit comments

Comments
 (0)