mirror of
https://github.com/riptidewave93/UNVR-NAS.git
synced 2025-02-15 03:51:54 +00:00
* Fixup incorrect device serial # * Add more system info about the NVRs * Start using ubnteeprom in more spots * Also do some minor BT house cleaning
10 lines
246 B
Python
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")
|