From 2348bc684ed6142b896cfbc79eff8069f50da4dc Mon Sep 17 00:00:00 2001 From: wysiwyng <4764286+wysiwyng@users.noreply.github.com> Date: Tue, 20 Mar 2018 22:34:49 +0100 Subject: [PATCH] switch schedules work again --- code/html/custom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/html/custom.js b/code/html/custom.js index b2e90172..85bde849 100644 --- a/code/html/custom.js +++ b/code/html/custom.js @@ -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();