From 70dc1d645c1e556fa0d033f69882f07fceb76df9 Mon Sep 17 00:00:00 2001 From: Jakob Hildebrand Date: Sat, 26 Oct 2024 16:27:22 +0200 Subject: [PATCH] Add optional TAN medium field to constructor of FinTS3PinTanClient (fix #121, #106) (#146) --- fints/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fints/client.py b/fints/client.py index 3d8ecc6..3ecfbfc 100644 --- a/fints/client.py +++ b/fints/client.py @@ -1125,13 +1125,13 @@ IMPLEMENTED_HKTAN_VERSIONS = { class FinTS3PinTanClient(FinTS3Client): - def __init__(self, bank_identifier, user_id, pin, server, customer_id=None, *args, **kwargs): + def __init__(self, bank_identifier, user_id, pin, server, customer_id=None, tan_medium=None, *args, **kwargs): self.pin = Password(pin) if pin is not None else pin self._pending_tan = None self.connection = FinTSHTTPSConnection(server) self.allowed_security_functions = [] self.selected_security_function = None - self.selected_tan_medium = None + self.selected_tan_medium = tan_medium self._bootstrap_mode = True super().__init__(bank_identifier=bank_identifier, user_id=user_id, customer_id=customer_id, *args, **kwargs) -- 2.39.5