Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
Use this instead of self
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Feb 2, 2020
1 parent 45e7297 commit e58d109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/accessories/alarmsensor.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ FritzAlarmSensorAccessory.prototype.querySensorState = function() {
: Characteristic.ContactSensorState.CONTACT_DETECTED;

// invert if enabled
state = self.platform.deviceConfig(`${self.ain}.invert`, false)
state = this.platform.deviceConfig(`${this.ain}.invert`, false)
? 1-state
: state;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-fritz",
"version": "0.9.3",
"version": "0.9.4",
"author": "Andreas Goetz <[email protected]>",
"homepage": "https://github.com/andig/homebridge-fritz#readme",
"description": "Homebridge platform plugin for Fritz!Box",
Expand Down

0 comments on commit e58d109

Please sign in to comment.