Skip to content
Snippets Groups Projects
Commit fe72cbeb authored by Sebastian Müller's avatar Sebastian Müller 🐈
Browse files

TimeComponent: fix status check in time property

parent c6f7d06a
No related branches found
No related tags found
1 merge request!220TimeComponent: fix status check in time property
Pipeline #132506 passed with stages
in 3 minutes and 48 seconds
......@@ -452,7 +452,8 @@ class TimeComponent(ITimeComponent, Component, ABC):
def time(self):
"""The component's current simulation time."""
if self._time is None and self.status in (
ComponentStatus.CREATED or ComponentStatus.INITIALIZED
ComponentStatus.CREATED,
ComponentStatus.INITIALIZED,
):
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment