diff --git a/MMM-WeeklySchedule.js b/MMM-WeeklySchedule.js index 646a507..e9a9cee 100644 --- a/MMM-WeeklySchedule.js +++ b/MMM-WeeklySchedule.js @@ -62,6 +62,9 @@ Module.register("MMM-WeeklySchedule", { this.translate("NO_LESSONS") ); } + else if (typeof lessons === "string" || lessons instanceof String) { + lessons = this.config.schedule.lessons[lessons]; + } // get timeslots var timeslots = this.config.schedule.timeslots;