message: fix(api): make delay wait for existing pause before pausing itself
  Closes
diff: @@ -252,6 +252,7 @@ class API(HardwareAPILike):
  async def delay(self, duration_s: int):
  """ Delay execution by pausing and sleeping.
  """
  + await self._wait_for_is_running()
  self.pause()
  if not self.is_simulator:
  async def sleep_for_seconds(seconds: int):
  