diff --git a/index.js b/index.js index 3395a67..3b3024d 100644 --- a/index.js +++ b/index.js @@ -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]; diff --git a/package.json b/package.json index ae90fd6..8e5924b 100644 --- a/package.json +++ b/package.json @@ -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"