def get_active_state(self) -> Optional[str]:
for state in self.get_run_states():<EOL><INDENT>if state.active:<EOL><INDENT>return state.name<EOL><DEDENT><DEDENT>return None<EOL>
Get the name of the active run state from the ZoneMinder API.