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:
parent
314cd260eb
commit
3b138b4f98
@ -210,6 +210,17 @@ def safety_checks(client, always, level):
|
|||||||
return device.apply_settings(client, safety_checks=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
|
# passphrase operations
|
||||||
#
|
#
|
||||||
|
@ -36,6 +36,7 @@ def apply_settings(
|
|||||||
auto_lock_delay_ms=None,
|
auto_lock_delay_ms=None,
|
||||||
display_rotation=None,
|
display_rotation=None,
|
||||||
safety_checks=None,
|
safety_checks=None,
|
||||||
|
experimental_features=None,
|
||||||
):
|
):
|
||||||
settings = messages.ApplySettings(
|
settings = messages.ApplySettings(
|
||||||
label=label,
|
label=label,
|
||||||
@ -46,6 +47,7 @@ def apply_settings(
|
|||||||
auto_lock_delay_ms=auto_lock_delay_ms,
|
auto_lock_delay_ms=auto_lock_delay_ms,
|
||||||
display_rotation=display_rotation,
|
display_rotation=display_rotation,
|
||||||
safety_checks=safety_checks,
|
safety_checks=safety_checks,
|
||||||
|
experimental_features=experimental_features,
|
||||||
)
|
)
|
||||||
|
|
||||||
out = client.call(settings)
|
out = client.call(settings)
|
||||||
|
Loading…
Reference in New Issue
Block a user