diff --git a/python/src/trezorlib/cli/settings.py b/python/src/trezorlib/cli/settings.py index 88319c7f6..4f9b90fb5 100644 --- a/python/src/trezorlib/cli/settings.py +++ b/python/src/trezorlib/cli/settings.py @@ -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 # diff --git a/python/src/trezorlib/device.py b/python/src/trezorlib/device.py index 60a1335b3..2179cd19b 100644 --- a/python/src/trezorlib/device.py +++ b/python/src/trezorlib/device.py @@ -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)