Skip to content

Remove unreleased electrical component category/type wrappers#233

Merged
llucax merged 8 commits into
frequenz-floss:v0.x.xfrom
llucax:rm-cat-type
Jul 6, 2026
Merged

Remove unreleased electrical component category/type wrappers#233
llucax merged 8 commits into
frequenz-floss:v0.x.xfrom
llucax:rm-cat-type

Conversation

@llucax

@llucax llucax commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

The earlier deprecation PR #222 deprecated ElectricalComponentCategory and the XxxType enums and .category and .type attributes, but most of those symbols were yet unreleased, so deprecating them makes no sense.

This PR remove the unreleased deprecated symbols:

  • ElectricalComponent.category and (Battery|Inverter|EvCharger).type attributes, except for Unrecognized* classes and MismatchesCategoryElectricalComponent, as they carry the raw protobuf value that could be used for forward compatibility.
  • BatteryType, InverterType, EvChargerType enums, and their protobuf conversion functions.

ElectricalComponentCategory and its proto converters are kept as deprecated because they were already released and still present in v0.4.0.

Part of #223.

@llucax
llucax requested a review from a team as a code owner July 3, 2026 08:29
@llucax
llucax requested review from ela-kotulska-frequenz and removed request for a team July 3, 2026 08:29
@github-actions github-actions Bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) part:microgrid Affects the microgrid protobuf definitions labels Jul 3, 2026
@llucax
llucax requested a review from Marenz July 3, 2026 08:30
@llucax llucax self-assigned this Jul 3, 2026
@llucax llucax added this to the v0.4.1 milestone Jul 3, 2026
@llucax
llucax enabled auto-merge July 3, 2026 08:46
@shsms

shsms commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

will wait for the rebase before reviewing.

llucax added 8 commits July 3, 2026 11:09
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
These deprecated attributes will be removed in the next commits.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@llucax

llucax commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Rebased.

@llucax

llucax commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

I was very silly not to realize in #222 that most of the stuff I deprecated was actually never released (in this repo).

@llucax
llucax added this pull request to the merge queue Jul 6, 2026
Merged via the queue into frequenz-floss:v0.x.x with commit 436141f Jul 6, 2026
9 checks passed
@llucax
llucax deleted the rm-cat-type branch July 6, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:microgrid Affects the microgrid protobuf definitions part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants