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

Commit

Permalink
Cameras - SecuritySystemTargetState should be determined using desire…
Browse files Browse the repository at this point in the history
…d state
  • Loading branch information
sibartlett committed May 14, 2017
1 parent 8b494eb commit 4fab998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export default ({ Characteristic, Service }) => {
},
{
characteristic: Characteristic.SecuritySystemTargetState,
get: state => {
switch (state.mode) {
get: (state, desired_state) => {
switch (desired_state.mode) {
case "away":
return Characteristic.SecuritySystemTargetState.AWAY_ARM;
case "night":
Expand Down

0 comments on commit 4fab998

Please sign in to comment.