From dc7d7bb3bd617d4b2ae0077a6b10f54f756e8580 Mon Sep 17 00:00:00 2001 From: Jan Pochyla Date: Wed, 17 Jan 2018 16:22:56 +0100 Subject: [PATCH] apps/homescreen: add pin_protection to Features Fixes WipeDevice test. --- src/apps/homescreen/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/homescreen/__init__.py b/src/apps/homescreen/__init__.py index 29bf281a..7927adc0 100644 --- a/src/apps/homescreen/__init__.py +++ b/src/apps/homescreen/__init__.py @@ -1,3 +1,4 @@ +from trezor import config from trezor.wire import register, protobuf_workflow from trezor.utils import unimport from trezor.messages.wire_types import Initialize, GetFeatures, Ping @@ -22,7 +23,7 @@ async def respond_Features(ctx, msg): f.label = storage.get_label() f.initialized = storage.is_initialized() f.passphrase_protection = storage.has_passphrase() - f.pin_protection = False + f.pin_protection = config.has_pin() f.language = 'english' return f