There are two problems with this:
- From the user's perspective, they get multiple (up to 5 per attempted login) texts with a verification code from Ring due to all the API calls I need to make before finally letting them enter the verification code
- From a Ring.com API perspective, there is a risk of making too many requests in a short period of time, locking the user out for minutes up to days
Ideally I would simply use the callback that is provided in the python Ring API library I am using to prompt the user for the verification code as soon as it is needed. However, this would require me to pop up a dialog box to have them enter it. Is this possible? If it was, I could only see it making sense to do this while the user has the plugin preferences configuration window open (i.e. wouldn't want to pop up a dialog at seemingly random times).