From a8bbcc8e61067da44350fbd038ce111a769b3e33 Mon Sep 17 00:00:00 2001 From: gtech99 Date: Fri, 23 Aug 2024 00:19:55 -0400 Subject: [PATCH] fix: don't make a set from a set, #9 zones isn't parsed properly because it creates a Set from a Set. --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index e753d0c..0eb17b3 100644 --- a/index.js +++ b/index.js @@ -68,7 +68,9 @@ exports.load_config = function () { // active zones if (this.cfg.main.periodic_checks < 5) { // all configured are enabled - this.zones = new Set(...this.cfg.main.zones) + // The original code is making a Set from the already existing Set created above. It leads to gibberish + //this.zones = new Set(...this.cfg.main.zones) + this.zones = this.cfg.main.zones } else { this.zones = new Set() // populated by check_zones() }