Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
#3 - fixed error with contact sensor accessory
Browse files Browse the repository at this point in the history
  • Loading branch information
michbeck100 committed Nov 9, 2015
1 parent 41d4faf commit a41030e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hap.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ module.exports = (env) =>
device.on 'contact', (state) =>
env.logger.debug("contact sensor state changed. Notifying iOS devices.")
@getService(Service.ContactSensor)
.setCharacteristic(Characteristic.ContactSensorState, getHomekitState(state))
.setCharacteristic(Characteristic.ContactSensorState, this.getHomekitState(state))

getHomekitState: (state) =>
if state == 'closed'
Expand Down

0 comments on commit a41030e

Please sign in to comment.