diff --git a/src/assets/HestiaClasses.js b/src/assets/HestiaClasses.js index a1439e2..4706821 100644 --- a/src/assets/HestiaClasses.js +++ b/src/assets/HestiaClasses.js @@ -87,7 +87,7 @@ export class Communicator { const msgJson = JSON.parse(msgStr); console.log(`Message received on topic ${topic}: ${msgStr}`); console.log(msgJson); - state[msgJson.name].on = msgJson.on; + state[msgJson.name] = msgJson; window.refreshState(window.document, state); }); }