Describe the bug
The Quickstart guide is out of date - apparently giving removed functions
e.g.
await auth.send_auth_key(blink, )
send_auth_key has been replaced with blink.send_2fa_code and then blink.setup_post_verify()
To Reproduce
Steps to reproduce the behavior:
- Use the quick start example
Updated Example for passing in your credentials and needing to pass in the oath code
import asyncio
from aiohttp import ClientSession
from blinkpy.blinkpy import Blink
from blinkpy.auth import BlinkTwoFARequiredError, Auth
async def start():
blink = Blink(session=ClientSession())
try:
auth = Auth({"username": "YourUserName", "password": "YourPassword"}, no_prompt=True)
blink.auth = auth
await blink.start()
except BlinkTwoFARequiredError:
print("Check Blink email for 6-digit 2FA code...")
code = input("Enter code: ").strip()
await blink.send_2fa_code(code)
await blink.setup_post_verify()
return blink
blink = asyncio.run(start())
Describe the bug
The Quickstart guide is out of date - apparently giving removed functions
e.g.
await auth.send_auth_key(blink, )
send_auth_key has been replaced with
blink.send_2fa_codeand thenblink.setup_post_verify()To Reproduce
Steps to reproduce the behavior:
Updated Example for passing in your credentials and needing to pass in the oath code