def ping(device_name): """Like ping, but block until completion and return the success status""" return wait_for_async(lambda cb : start_ping(device_name, cb))
def poweroff(device_name, max_time=30): """Like start_poweroff, but block until completion and return the success status""" return wait_for_async(lambda cb : start_poweroff(device_name, cb, max_time))