diff --git a/src/assets/HestiaClasses.js b/src/assets/HestiaClasses.js index 71855ac..c7bf506 100644 --- a/src/assets/HestiaClasses.js +++ b/src/assets/HestiaClasses.js @@ -1,5 +1,5 @@ // Custom Classes files -const config = fetch('/assets/config.json') +const config = await fetch('/assets/config.json') .then(response => { if (!response.ok) { throw new Error('Network response was not ok'); diff --git a/src/assets/config.json b/src/assets/config.json index ba106ec..129060e 100644 --- a/src/assets/config.json +++ b/src/assets/config.json @@ -1,21 +1,19 @@ { - "config": { - "mqtt": { - "address": "wd://broker-url:port", - "subscriptions": [ - { - "name": "igniter", - "topic": "hestia/status/igniter" - }, - { - "name": "exhaust", - "topic": "hestia/status/exhaust" - }, - { - "name": "auger", - "topic": "hestia/status/auger" - } - ] - } + "mqtt": { + "address": "wd://broker-url:port", + "subscriptions": [ + { + "name": "igniter", + "topic": "hestia/status/igniter" + }, + { + "name": "exhaust", + "topic": "hestia/status/exhaust" + }, + { + "name": "auger", + "topic": "hestia/status/auger" + } + ] } } \ No newline at end of file