Skip to content

Commit 2436e61

Browse files
list: allow listing through CCID
1 parent 66254f6 commit 2436e61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/nitrokey/trussed/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@
2323
from ._utils import Version as Version # noqa: F401
2424

2525

26-
def list(*, model: Optional[Model] = None) -> List[TrussedBase]:
26+
def list(use_ccid: bool = False, *, model: Optional[Model] = None) -> List[TrussedBase]:
2727
devices: List[TrussedBase] = []
2828

2929
if model is None or model == Model.NK3:
3030
from nitrokey import nk3
3131

32-
devices.extend(nk3.list())
32+
devices.extend(nk3.list(use_ccid))
3333

3434
if model is None or model == Model.NKPK:
3535
from nitrokey import nkpk
3636

37-
devices.extend(nkpk.list())
37+
devices.extend(nkpk.list(use_ccid))
3838

3939
return devices
4040

0 commit comments

Comments
 (0)