File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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: {:?}" ,
You can’t perform that action at this time.
0 commit comments