From 4e62b9f50f99430583abc339ac64a636ac414c12 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Sun, 22 Dec 2019 17:22:23 +0100 Subject: [PATCH] Stop sending HKTAN in HKTAB --- fints/client.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/fints/client.py b/fints/client.py index 6adee64..a381e4a 100644 --- a/fints/client.py +++ b/fints/client.py @@ -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 -- 2.39.5