1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 20:08:12 +00:00

feat(python): support model R in trezorlib

This commit is contained in:
grdddj 2022-05-01 14:10:39 +02:00 committed by matejcik
parent 6b5f578d02
commit 8e1b5a969c
2 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1 @@
Add support for model R

View File

@ -33,7 +33,15 @@ TREZOR_T = TrezorModel(
default_mapping=mapping.DEFAULT_MAPPING,
)
TREZORS = {TREZOR_ONE, TREZOR_T}
TREZOR_R = TrezorModel(
name="R",
minimum_version=(2, 1, 0),
vendors=VENDORS,
usb_ids=((0x1209, 0x53C1), (0x1209, 0x53C0)),
default_mapping=mapping.DEFAULT_MAPPING,
)
TREZORS = {TREZOR_ONE, TREZOR_T, TREZOR_R}
def by_name(name: str) -> Optional[TrezorModel]: