Heat a pan over medium heat and add the olive oil. Once warm, add the diced onion and cook for 2-3 minutes or until translucent.
Add the cubed potatoes/sweet potatoes, and ½ teaspoon salt. Mix everything together and kind of press the potatoes down into the pan with a spatula so they’re all ‘sardined’ in there in the oil.
Cover with a lid* and reduce heat to medium-low. Cook for 10 minutes or until the potatoes are fork-tender.*Although this isn't done in the traditional method, I prefer using a lid to help speed up the process of cooking the potatoes. Especially on days when I'm really hungry and those extra five or so minutes without a lid feel like forever. Whisk the eggs and add the other ½ teaspoon of salt, and the dried herbs in a bowl. Remove the cooked potatoes and onions out of the pan with a slotted spoon and shake off any excess oil. Add to the whisked egg mixture and stir together.
Remove all but about 1 tablespoon of oil in the pan (see notes below) and bump up the heat to medium. Add the egg and potato mixture. Smooth it out to make sure it’s touching the edges of the pan, and then stir it in the middle until it starts to scramble then stop stirring. Cook for about 3-4 minutes and then run a rubber spatula along the edges to make sure it will lift out with ease.
Remove the skillet from the heat, put a plate face down on top of the pan and then flip it onto the plate before sliding it back into the pan. Cook another 2 minutes, remove from the heat and serve immediately.