Skip to content

Commit

Permalink
Performance enhancements
Browse files Browse the repository at this point in the history
IMPROVED
- [Plugin code] Camel-case formatting on "formatGetDeviceStatus".
- [Plugin code] Camel-case formatting on "setDeviceStatus".
- [Plugin code] Better implementation when adding new device.
- [Plugin code] Better implementation of device and sensor polling.
- [Plugin code] Exported module moved to end of file.
- [Main script] ESLint "func-names" on "Pulse" function.
- [Main script] ESLint "prefer-const" on "Q.defer" function.
- [Main script] Algorithm on response path regex.

FIXED
- [Plugin code] Offline devices will now poll as "Not Available".
- [Plugin code] Offline sensors will now poll as "Not Available" if the type is valid.

ADDED
- [Plugin code] Log system information on Homebridge startup.
- [Main script] Reference to "devStatUnknown" in "getZoneStatus" function.

REMOVED
- [Test script] Spacing between console logging objects.
- [Test script] Debug argument.
- [Test script] Console logger function.
  • Loading branch information
mrjackyliang committed Jan 15, 2020
1 parent 7ead1f0 commit c1d62a2
Show file tree
Hide file tree
Showing 6 changed files with 1,639 additions and 1,665 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
],
"max-len": [
"off"
],
"no-irregular-whitespace": [
"error",
{
"skipRegExps": true
}
]
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ There is a test script included in the package that performs specific actions us

This script requires your username, password, and an action type.
```shell script
node test-api --username [email protected] --password 1234567890 --action [device-information,device-status,zone-status,sync,disarm,arm-away,arm-stay,arm-night] --debug [true,false]
node test-api --username [email protected] --password 1234567890 --action [device-information,device-status,zone-status,sync,disarm,arm-away,arm-stay,arm-night]
```

## Developer Information
Expand Down
Loading

0 comments on commit c1d62a2

Please sign in to comment.