switch schedules work again

This commit is contained in:
wysiwyng
2018-03-20 22:34:49 +01:00
parent a2b175ac4b
commit 2348bc684e

View File

@@ -662,7 +662,7 @@ function addSchedule(event) {
var template = $("#scheduleTemplate").children();
var line = $(template).clone();
var type = (1 === event.data.schType) ? "switch" : "light";
var type = ("1" === event.data.schType) ? "switch" : "light";
template = $("#" + type + "ActionTemplate").children();
var actionLine = template.clone();