joe-ng / homebridge-dyson-link

MIT License
207 stars 40 forks source link

Add an error message to help users debug incorrect serial number configuration #71

Closed tobico closed 5 years ago

tobico commented 6 years ago

Currently if you're relying on a password being fetched from your user account, but the serial number you've entered doesn't match anything on your account, the plugin will cause homebridge to crash and provide no information on what went wrong.

This PR prevents the crash and shows an error message with a list of serial numbers that are registered to your account, so the configuration can be easily corrected.

fluidpixel commented 6 years ago

Seems would help with #41

fluidpixel commented 6 years ago

And potentially #50