homebridge-plugins / homebridge-august

The Homebridge August plugin allows you to access your August/Yale Locks from HomeKit with Homebridge.
ISC License
36 stars 9 forks source link

fix August validation failure with verification codes starting with 0 #88

Closed westhom closed 9 months ago

westhom commented 9 months ago

:recycle: Current situation

If your August verification code starts with 0, the validation check fails. See issue #54 and #48.

:bulb: Proposed solution

Don't call parseInt() on the user-supplied verification code, which can delete leading zeros. The August validate() API method wants a string anyways.

:gear: Release Notes

Support verification codes with leading zeros (no breaking changes).

:heavy_plus_sign: Additional Information

Testing

Reviewer Nudging