Only set the power state, not the entire state code lol
This commit is contained in:
parent
1c37b63314
commit
b62eebbe0f
@ -74,7 +74,7 @@ export class Communicator {
|
||||
const msgJson = JSON.parse(msgStr);
|
||||
console.log(`Message received on topic ${topic}: ${msgStr}`);
|
||||
console.log(msgJson);
|
||||
state[msgJson.name] = msgJson;
|
||||
state[msgJson.name].on = msgJson.on;
|
||||
window.refreshState(window.document, state);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user