Rename unifi_console info widget to unifi

This commit is contained in:
Michael Shamoon 2022-10-08 14:02:12 -07:00
parent 42da3eca28
commit fe1064b173
4 changed files with 5 additions and 6 deletions

View file

@ -17,11 +17,11 @@ async function getWidget(req) {
const { group, service, type } = req.query;
let widget = null;
if (type === "unifi_console") {
if (type === "unifi") {
const settings = getSettings();
widget = settings.unifi_console;
widget = settings.unifi;
if (!widget) {
logger.debug("There is no unifi_console section in settings.yaml");
logger.debug("There is no unifi section in settings.yaml");
return null;
}
widget.type = "unifi";