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:
parent
97e3728349
commit
66d2530541
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user