Revert "Rename unifi_console info widget to unifi"

This commit is contained in:
Michael Shamoon 2022-10-09 09:15:46 -07:00
parent fbac27f504
commit 69c9a449b1
4 changed files with 6 additions and 5 deletions

View file

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