-
Notifications
You must be signed in to change notification settings - Fork 6
Add WindTurbine #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add WindTurbine #223
Conversation
There was a problem hiding this 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
WindTurbineclass andWIND_TURBINEcategory 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.
hannah-stevenson-frequenz
left a comment
There was a problem hiding this 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.
llucax
left a comment
There was a problem hiding this 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!
|
Also nitpick, but I would remove the |
Signed-off-by: Nicolás Hatcher <[email protected]>
7ad4d63
d4b2b98 to
7ad4d63
Compare
No description provided.