Skip to content

Commit

Permalink
Bug fix. Sensors now work more than once. 😠
Browse files Browse the repository at this point in the history
  • Loading branch information
SphtKr committed Jan 22, 2016
1 parent 6ea276f commit e33e9d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ SmtpSensorAccessory.prototype = {
this.timer = setTimeout(function(){
changeAction(!newState);
delete this.timer;
}, this.window_seconds * 1000);
}.bind(this), this.window_seconds * 1000);
}.bind(this);

return [informationService, service];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "homebridge-smtpsensor",
"description": "SMTP Sensor plugin for homebridge: https://github.com/nfarina/homebridge",
"version": "0.1.0",
"version": "0.1.1",
"repository": {
"type": "git",
"url": "git://github.com/SphtKr/homebridge-smtpsensor.git"
Expand Down

0 comments on commit e33e9d4

Please sign in to comment.