From 19ff8316e4e63ea56b5caeea20bf96c6a4e3062a Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Sun, 21 Apr 2024 18:43:49 +0100 Subject: [PATCH] ha: use readJSON --- apps/ha/ha.lib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ha/ha.lib.js b/apps/ha/ha.lib.js index 9b16a25cc..89802b28d 100644 --- a/apps/ha/ha.lib.js +++ b/apps/ha/ha.lib.js @@ -36,7 +36,7 @@ exports.getTriggers = function(){ var triggers; try{ - triggers = JSON.parse(require("Storage").read("ha.trigger.json")); + triggers = require("Storage").readJSON("ha.trigger.json"); } catch(e) { // In case there are no user triggers yet, we show the default... console.log("ha: error loading triggers:", e);