]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Add optional TAN medium field to constructor of FinTS3PinTanClient (fix #121, #106...
authorJakob Hildebrand <JHthe4@users.noreply.github.com>
Sat, 26 Oct 2024 14:27:22 +0000 (16:27 +0200)
committerGitHub <noreply@github.com>
Sat, 26 Oct 2024 14:27:22 +0000 (16:27 +0200)
fints/client.py

index 3d8ecc6f14d6a53bb5759760fe8b8ec0b2ce69c9..3ecfbfc53ec5945a4a19541cae63441908b0b9af 100644 (file)
@@ -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)