Fix handling of pairing request

M1nd3r/thp5
M1nd3r 1 month ago
parent 3a8c4c6330
commit 3a90ed6e6c

@ -39,13 +39,13 @@ async def handle_pairing_request(
if _is_method_included(ctx, ThpPairingMethod.PairingMethod_CodeEntry):
ctx.channel.set_channel_state(ChannelState.TP2)
await context.call(ThpCodeEntryCommitment(), ThpCodeEntryChallenge)
ctx.channel.set_channel_state(ChannelState.TP3)
await context.call_any(
ThpPairingPreparationsFinished(),
MessageType.ThpQrCodeTag,
MessageType.ThpNfcUnidirectionalTag,
)
else:
ctx.channel.set_channel_state(ChannelState.TP3)
await context.call_any(
ThpPairingPreparationsFinished(),
MessageType.ThpQrCodeTag,
MessageType.ThpNfcUnidirectionalTag,
)
async def handle_code_entry_challenge(

Loading…
Cancel
Save