mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 15:28:10 +00:00
python: clear state with clear_session (fixes #525)
This commit is contained in:
parent
4338e17757
commit
afe41d5fcf
@ -291,6 +291,7 @@ class TrezorClient:
|
||||
def clear_session(self):
|
||||
resp = self.call_raw(messages.ClearSession())
|
||||
if isinstance(resp, messages.Success):
|
||||
self.state = None
|
||||
self.init_device()
|
||||
return resp.message
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user