]> git.ipfire.org Git - thirdparty/python-fints.git/commitdiff
Stop sending HKTAN in HKTAB
authorRaphael Michel <mail@raphaelmichel.de>
Sun, 22 Dec 2019 16:22:23 +0000 (17:22 +0100)
committerRaphael Michel <mail@raphaelmichel.de>
Sun, 22 Dec 2019 16:22:23 +0000 (17:22 +0100)
fints/client.py

index 6adee640178bcb68382bb2e77d13f6edeee0b73b..a381e4a6fcbac7dd8c2cf9093bf8bdbbd152e5eb 100644 (file)
@@ -1342,14 +1342,15 @@ class FinTS3PinTanClient(FinTS3Client):
             hktab = self._find_highest_supported_command(HKTAB4, HKTAB5)
 
             seg = hktab(
-                tan_media_type = media_type,
-                tan_media_class = str(media_class),
+                tan_media_type=media_type,
+                tan_media_class=str(media_class),
             )
-            tan_seg = self._get_tan_segment(seg, '4')
+            # The specification says we should send a dummy HKTAN object but apparently it seems to do more harm than
+            # good.
 
             try:
                 self._bootstrap_mode = True
-                response = dialog.send(seg, tan_seg)
+                response = dialog.send(seg)
             finally:
                 self._bootstrap_mode = False