Being more pythonesk.
All checks were successful
Check code formatting / Check-C-Format (push) Successful in 31m2s
Check code formatting / Check-Python-Flake8 (push) Successful in 9s
Run unit tests on host / Run-Unit-Tests (push) Successful in 8s

This commit is contained in:
2024-12-03 21:25:02 +01:00
parent 573fe5c7cc
commit 3c81b916ea

View File

@@ -3,10 +3,7 @@ import asyncio
def uid_to_string(uid: list):
uid_string = "0x"
for i in uid:
uid_string += f'{i:02x}'
return uid_string
return '0x' + ''.join(f'{i:02x}' for i in uid)
async def get_tag_uid(reader: MFRC522, poll_interval_ms: int = 50) -> list: