Skip to content

Commit b9ce551

Browse files
Add copilots suggestions
1 parent fd08235 commit b9ce551

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
## New Features
44

55
- Grid formulas now use single successor meters as fallback components for meters attached to the grid.
6-
- Adds Wind Turbine bindings
6+
- Adds wind turbine bindings

src/category.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@ pub(crate) fn category_from_python_component(
8484
|| object.is(&comp_classes.hybrid_inverter)
8585
{
8686
Ok(cg::ComponentCategory::Inverter(cg::InverterType::Hybrid))
87-
} else if object.is_instance(&comp_classes.unspecified_component)?
88-
|| object.is(&comp_classes.unspecified_component)
89-
{
90-
Ok(cg::ComponentCategory::Unspecified)
9187
} else if object.is_instance(&comp_classes.wind_turbine)?
9288
|| object.is(&comp_classes.wind_turbine)
9389
{
9490
Ok(cg::ComponentCategory::WindTurbine)
91+
} else if object.is_instance(&comp_classes.unspecified_component)?
92+
|| object.is(&comp_classes.unspecified_component)
93+
{
94+
Ok(cg::ComponentCategory::Unspecified)
9595
} else {
9696
Err(exceptions::PyValueError::new_err(format!(
9797
"Unsupported component category: {:?}",

0 commit comments

Comments
 (0)