def ping(main_ui, message, button_protection, pin_protection, passphrase_protection): client = main_ui.hw_client if client: return client.ping(message, button_protection=button_protection, pin_protection=pin_protection, passphrase_protection=passphrase_protection)
def ping(hw_session: HwSessionInfo, message, button_protection, pin_protection, passphrase_protection): client = hw_session.hw_client if client: return client.ping(message, button_protection=button_protection, pin_protection=pin_protection, passphrase_protection=passphrase_protection)