1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 21:38:26 +00:00

apps/homescreen: add pin_protection to Features

Fixes WipeDevice test.
This commit is contained in:
Jan Pochyla 2018-01-17 16:22:56 +01:00
parent db9ac661f9
commit dc7d7bb3bd

View File

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