1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-12 18:49:07 +00:00

fix(core): displayed pairing code will always have 6-digits (added leading zeroes)

[no changelog]
This commit is contained in:
M1nd3r 2024-07-30 14:24:04 +02:00
parent f7b0a03459
commit 7e18254a3c

View File

@ -52,7 +52,7 @@ class PairingDisplayData:
def _get_code_code_entry_str(self) -> str:
if self.code_code_entry is not None:
code_str = str(self.code_code_entry)
code_str = f"{self.code_code_entry:06}"
print("code_code_entry:", code_str)
return code_str[:3] + " " + code_str[3:]