We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 780eb0a commit bd5e91eCopy full SHA for bd5e91e
1 file changed
src/bluetooth_data_tools/utils.py
@@ -39,6 +39,7 @@ def short_address(address: str) -> str:
39
return f"{second_last.upper()}{last.upper()}"[-4:]
40
41
42
+@lru_cache(maxsize=512)
43
def human_readable_name(name: str | None, local_name: str, address: str) -> str:
44
"""Return a human readable name for the given name, local_name, and address."""
45
return f"{name or local_name} ({short_address(address)})"
0 commit comments