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) {
|
if (wemoClient !== null) {
|
||||||
wemoClient.setBinaryState(mode);
|
wemoClient.setBinaryState(mode);
|
||||||
let newState = wemoClient.getBinaryState();
|
// let newState = wemoClient.getBinaryState();
|
||||||
busEmitter.emit('updateState', newState);
|
// busEmitter.emit('updateState', newState);
|
||||||
} else {
|
} else {
|
||||||
console.error('No wemoClient');
|
console.error('No wemoClient');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user