1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-14 03:30:02 +00:00

wip trezorlib get features

This commit is contained in:
M1nd3r 2024-09-12 20:24:30 +02:00
parent 97e3728349
commit 66d2530541

View File

@ -382,10 +382,11 @@ def new_clear_session() -> None:
@cli.command()
@with_client
def get_features(client: "TrezorClient") -> messages.Features:
@new_with_client
def get_features(client: "NewTrezorClient") -> messages.Features:
"""Retrieve device features and settings."""
return client.features
session = client.get_management_session()
return session.features
@cli.command()