mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-19 08:39:03 +00:00
fixup! fixup! feat(python): implement session based trezorlib
This commit is contained in:
parent
f7014ca550
commit
48070bcef4
@ -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