Skip to content

Conversation

@nhatcher-frequenz
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings December 9, 2025 14:05
@nhatcher-frequenz nhatcher-frequenz requested review from a team as code owners December 9, 2025 14:05
@nhatcher-frequenz nhatcher-frequenz requested review from daniel-zullo-frequenz and hannah-stevenson-frequenz and removed request for a team December 9, 2025 14:05
@github-actions github-actions bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests labels Dec 9, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for a new WindTurbine component type to the microgrid client library, following the established pattern for simple component types.

Key Changes:

  • Added WindTurbine class and WIND_TURBINE category enum value
  • Integrated the new component into type system and proto conversion logic
  • Added test coverage for the new component type

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/frequenz/client/microgrid/component/_wind_turbine.py Implements the WindTurbine component class following the standard frozen dataclass pattern
src/frequenz/client/microgrid/component/_category.py Adds WIND_TURBINE enum value mapped to the protobuf category constant
src/frequenz/client/microgrid/component/__init__.py Exports WindTurbine class in the public API
src/frequenz/client/microgrid/component/_types.py Includes WindTurbine in the ComponentTypes type alias
src/frequenz/client/microgrid/component/_component_proto.py Adds proto conversion support for wind turbine components
tests/component/test_wind_turbine.rs Adds basic initialization test (note: incorrect file extension)
tests/component/component_proto/test_simple.py Adds wind turbine to trivial component tests
tests/client_test_cases/list_components/diverse_component_types_case.py Updates integration test to include wind turbine component
RELEASE_NOTES.md Documents the addition of the WindTurbine component type

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@hannah-stevenson-frequenz hannah-stevenson-frequenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from the little I know about python and this repo, lgtm.

@nhatcher-frequenz nhatcher-frequenz self-assigned this Dec 9, 2025
Copy link
Contributor

@llucax llucax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only a couple of minor comments. Other than that LGTM. Thanks!

@llucax
Copy link
Contributor

llucax commented Dec 9, 2025

Also nitpick, but I would remove the UPDATE: prefix from the commit and PR, as it is not something we usually do in this repo.

@llucax llucax added this to the v0.18.1 milestone Dec 9, 2025
@llucax llucax added the type:enhancement New feature or enhancement visitble to users label Dec 9, 2025
Marenz
Marenz previously approved these changes Dec 9, 2025
Signed-off-by: Nicolás Hatcher <[email protected]>
@nhatcher-frequenz nhatcher-frequenz changed the title UPDATE: Add WindTurbine Add WindTurbine Dec 9, 2025
@nhatcher-frequenz nhatcher-frequenz added this pull request to the merge queue Dec 10, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 0a43d72 Dec 10, 2025
6 checks passed
@nhatcher-frequenz nhatcher-frequenz deleted the wind-turbines branch December 10, 2025 09:05
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:tests Affects the unit, integration and performance (benchmarks) tests type:enhancement New feature or enhancement visitble to users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants