mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-21 17:49:02 +00:00
fixup! fixup! feat(python): implement session based trezorlib
This commit is contained in:
parent
01b41a78b8
commit
f9142abb42
@ -47,7 +47,6 @@ Or visit https://suite.trezor.io/
|
||||
|
||||
|
||||
class ProtocolVersion(IntEnum):
|
||||
UNKNOWN = 0x00
|
||||
PROTOCOL_V1 = 0x01 # Codec
|
||||
PROTOCOL_V2 = 0x02 # THP
|
||||
|
||||
@ -91,7 +90,7 @@ class TrezorClient:
|
||||
if isinstance(self.protocol, ProtocolV1Channel):
|
||||
self._protocol_version = ProtocolVersion.PROTOCOL_V1
|
||||
else:
|
||||
self._protocol_version = ProtocolVersion.UNKNOWN
|
||||
raise Exception("Unknown protocol version")
|
||||
|
||||
@classmethod
|
||||
def resume(
|
||||
|
Loading…
Reference in New Issue
Block a user