From 62d66a713c96071596afc910f5e1e6b6628a56eb Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Mon, 3 Aug 2020 18:21:59 +0200 Subject: [PATCH] python: Add cancel_authorization() to trezorlib. --- python/src/trezorlib/device.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/src/trezorlib/device.py b/python/src/trezorlib/device.py index ea07f9e8e2..23d1ea1cba 100644 --- a/python/src/trezorlib/device.py +++ b/python/src/trezorlib/device.py @@ -193,3 +193,8 @@ def reset( def backup(client): ret = client.call(messages.BackupDevice()) return ret + + +@expect(messages.Success, field="message") +def cancel_authorization(client): + return client.call(messages.CancelAuthorization())