Remove unused properties from unusable device description

This commit is contained in:
Emil Lundberg 2018-02-14 15:54:04 +01:00
parent a137b5ab9f
commit 6bc06d3253
No known key found for this signature in database
GPG Key ID: 5B9688125FF0B636

View File

@ -110,12 +110,9 @@ class Controller(object):
if unmatched_otp_mode or unmatched_ccid_mode:
return {
'fingerprint': desc.fingerprint,
'pid': desc.pid,
'transports': [
t.name for t in TRANSPORT.split(desc.mode.transports)
],
'type': desc.key_type.value,
'usable': False,
}