UNVR-NAS/overlay/filesystem/usr/lib/python3/dist-packages/ubnthelpers.py
Chris Blake d29cbab7a6 fix: and add data to ubnteeprom
* 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:48:40 -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")