Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fermuch committed Mar 16, 2023
1 parent e91ccbc commit 1067884
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function setLock(state: boolean) {
platform.log('Lock/unlock script: ' + (state ? 'Locked' : 'Unlocked'));
}

let targets = conf.get("target", ['MONOFLOW_RELAY_1']);
let targets = conf.get("target", []);
if (!Array.isArray(targets)) {
targets = [targets];
}
Expand All @@ -40,4 +40,4 @@ messages.on('onInit', function() {
MonoUtils.wk.event.subscribe<MonoUtils.wk.lock.LockEvent>('lock-request', (ev) => {
const locked = ev.getData().lock;
setLock(locked);
})
});

0 comments on commit 1067884

Please sign in to comment.