Skip to content

Commit

Permalink
Use proper enums for occupancy sensor values
Browse files Browse the repository at this point in the history
  • Loading branch information
jhurliman committed Nov 10, 2017
1 parent b0c4233 commit 2a08ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -400,9 +400,9 @@ function getSensorState(sensor) {
case frontpoint.SENSOR_STATES.CLOSED:
return Characteristic.ContactSensorState.CONTACT_DETECTED
case frontpoint.SENSOR_STATES.ACTIVE:
return true
return Characteristic.OccupancyDetected.OCCUPANCY_DETECTED
case frontpoint.SENSOR_STATES.IDLE:
return false
return Characteristic.OccupancyDetected.OCCUPANCY_NOT_DETECTED
case frontpoint.SENSOR_STATES.WET:
return Characteristic.LeakDetected.LEAK_DETECTED
case frontpoint.SENSOR_STATES.DRY:
Expand Down

0 comments on commit 2a08ea3

Please sign in to comment.