Skip to content

Commit bf232cf

Browse files
committed
Merge pull request krvarma#1 from moors7/patch-1
Fixed a missing bracket
2 parents 836248e + 97a4f12 commit bf232cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎index.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ ParticleAccessory.prototype.setState = function(state, callback) {
138138

139139
this.log.info("Calling function: " + onUrl);
140140

141-
var argument = this.args.replace("{STATE", (state ? "1" : "0"));
141+
var argument = this.args.replace("{STATE}", (state ? "1" : "0"));
142142

143143
request.post(
144144
onUrl, {
@@ -203,4 +203,4 @@ ParticleAccessory.prototype.setCurrentValue = function(value, callback) {
203203

204204
ParticleAccessory.prototype.getServices = function() {
205205
return this.services;
206-
}
206+
}

0 commit comments

Comments
 (0)