From 81e9371bffbcb9f1733330098daf7f5a981aa9d6 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 17 Sep 2025 10:04:44 +0200 Subject: [PATCH] Fix lint errors in JSON table module --- MMM-JsonTable.js | 5 ++++- node_helper.js | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/MMM-JsonTable.js b/MMM-JsonTable.js index a5063b0..9f9a577 100644 --- a/MMM-JsonTable.js +++ b/MMM-JsonTable.js @@ -31,7 +31,10 @@ Module.register("MMM-JsonTable", { // Request node_helper to get json from url getJson () { - this.sendSocketNotification("MMM-JsonTable_GET_JSON", {url:this.config.url,id:this.identifier}); + this.sendSocketNotification("MMM-JsonTable_GET_JSON", { + url: this.config.url, + id: this.identifier + }); }, socketNotificationReceived (notification, payload) { diff --git a/node_helper.js b/node_helper.js index 904a794..911a1de 100644 --- a/node_helper.js +++ b/node_helper.js @@ -14,14 +14,14 @@ module.exports = NodeHelper.create({ .then((json) => { // Send the json data back with the url to distinguish it on the receiving part self.sendSocketNotification("MMM-JsonTable_JSON_RESULT", { - id:payload.id, + id: payload.id, data: json }); }); }, // Subclass socketNotificationReceived received. - socketNotificationReceived (notification, payload ) { + socketNotificationReceived (notification, payload) { if (notification === "MMM-JsonTable_GET_JSON") { this.getJson(payload); }