Returns tuple of fints.formals.TANUsageOption and a list of fints.formals.TANMedia4 or fints.formals.TANMedia5 objects."""
- with self._get_dialog() as dialog:
+ with self._new_dialog(lazy_init=True) as dialog:
hktab = self._find_highest_supported_command(HKTAB4, HKTAB5)
seg = hktab(
try:
self._bootstrap_mode = True
- response = dialog.send(seg)
+ response = dialog.init(seg)
finally:
self._bootstrap_mode = False
if client.is_tan_media_required() and not client.selected_tan_medium:
print("We need the name of the TAN medium, let's fetch them from the bank")
- with client:
- m = client.get_tan_media()
+ m = client.get_tan_media()
if len(m[1]) == 1:
client.set_tan_medium(m[1][0])
else: