Skip to content

Commit

Permalink
Always check for lowercase component type
Browse files Browse the repository at this point in the history
  • Loading branch information
s-simoncelli committed Feb 19, 2024
1 parent 104e23d commit e7aeebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywr_editor/model/component_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def type(self) -> str | None:
:return: The lowercase string identifying the component type.
"""
if "type" in self.props and self.props["type"]:
return self.props["type"]
return self.props["type"].lower()
return None

@property
Expand Down

0 comments on commit e7aeebf

Please sign in to comment.