def setup_and_run_hass(edge, top_process=False):
    """
    Setup HASS and run. Block until stopped. Will assume it is running in a
    subprocess unless top_process is set to true.
    """
   

    edge.start()
    # exit_code = int(edge.block_till_stopped())

    # if not top_process:
    #     sys.exit(exit_code)
    return 0