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);