Skip to content

Commit

Permalink
Merge pull request #7 from rgsteele/patch-1
Browse files Browse the repository at this point in the history
Fix logic in getState with invert_status true
  • Loading branch information
adyanth authored May 26, 2024
2 parents 45de39d + 9409fc7 commit 7d043ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class CommandAccessoryPlugin {
execSync(this.config.check_status, { timeout: timeout });
this.currentState = !this.config.invert_status;
} catch (error) {
this.currentState = false;
this.currentState = this.config.invert_status;
}

this.log.debug(`Returning: ${this.currentState}`);
Expand Down

0 comments on commit 7d043ac

Please sign in to comment.