some changes to global mode
This commit is contained in:
parent
647c69d9b0
commit
47269c3633
@ -56,8 +56,8 @@ busEmitter.on('changeState', function(mode) {
|
||||
|
||||
if (wemoClient !== null) {
|
||||
wemoClient.setBinaryState(mode);
|
||||
let newState = wemoClient.getBinaryState();
|
||||
busEmitter.emit('updateState', newState);
|
||||
// let newState = wemoClient.getBinaryState();
|
||||
// busEmitter.emit('updateState', newState);
|
||||
} else {
|
||||
console.error('No wemoClient');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user