From 1ae28c99c33836e987ee48ae6a290ff684696783 Mon Sep 17 00:00:00 2001 From: Jane Petrovna Date: Wed, 26 May 2021 18:23:39 -0400 Subject: [PATCH] only default to pattern if it has commands --- lights.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lights.js b/lights.js index 283d24b..3665324 100644 --- a/lights.js +++ b/lights.js @@ -43,7 +43,7 @@ function tick_pattern() { // do the parsing stuff here log.debug("TICKING PATTERN") - if (pattern) { + if (Object.keys(pattern).length > 0) { } else {