feat(python): add experimental_features setting

pull/1280/head
Martin Milata 4 years ago committed by Tomas Susanka
parent 314cd260eb
commit 3b138b4f98

@ -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
#

@ -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)

Loading…
Cancel
Save