UNVR-NAS/overlay/filesystem/usr/lib/python3/dist-packages/ubnthelpers.py
Chris Blake 8e2262e121
fix: and add data to ubnteeprom (#10)
* Fixup incorrect device serial #
* Add more system info about the NVRs
* Start using ubnteeprom in more spots
* Also do some minor BT house cleaning
2024-06-15 09:49:11 -05:00

10 lines
246 B
Python

#!/usr/bin/python3
from functools import lru_cache
"""
A handful of Ubiquiti Unifi device specific functions
"""
@lru_cache(None)
def get_ubnt_shortname() -> str:
return os.popen("ubnteeprom -systeminfo -key shortname").read().rstrip("\n")