ha: use readJSON

master
Rob Pilling 2024-04-21 18:43:49 +01:00
parent 95366ebc5d
commit 19ff8316e4
1 changed files with 1 additions and 1 deletions

View File

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