1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00

feat(python): add experimental_features setting

This commit is contained in:
Martin Milata 2020-10-04 23:43:01 +02:00 committed by Tomas Susanka
parent 314cd260eb
commit 3b138b4f98
2 changed files with 13 additions and 0 deletions

View File

@ -210,6 +210,17 @@ def safety_checks(client, always, level):
return device.apply_settings(client, safety_checks=level)
@cli.command()
@click.argument("enable", type=ChoiceType({"on": True, "off": False}))
@with_client
def experimental_features(client, enable):
"""Enable or disable experimental message types.
This is a developer feature. Use with caution.
"""
return device.apply_settings(client, experimental_features=enable)
#
# passphrase operations
#

View File

@ -36,6 +36,7 @@ def apply_settings(
auto_lock_delay_ms=None,
display_rotation=None,
safety_checks=None,
experimental_features=None,
):
settings = messages.ApplySettings(
label=label,
@ -46,6 +47,7 @@ def apply_settings(
auto_lock_delay_ms=auto_lock_delay_ms,
display_rotation=display_rotation,
safety_checks=safety_checks,
experimental_features=experimental_features,
)
out = client.call(settings)