You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,6 @@ Like the library? Consider buying me a cup of coffee!
6
6
7
7
`Buy me a Coffee! <https://buymeacoffee.com/kevinfronczak>`__
8
8
9
-
**BREAKING CHANGE WARNING:**
10
-
As of ``0.22.0`` the library uses asyncio which will break any user scripts used prior to this version. Please see the updated examples below and the ``blinkapp.py`` or ``blinksync.py`` examples in the ``blinkapp/`` directory for examples on how to migrate.
11
-
12
9
**Disclaimer:**
13
10
Published under the MIT license - See LICENSE file for more details.
14
11
@@ -54,7 +51,10 @@ The simplest way to use this package from a terminal is to call ``await Blink.st
54
51
55
52
asyncdefstart():
56
53
blink = Blink(session=ClientSession())
57
-
await blink.start()
54
+
try:
55
+
await blink.start()
56
+
except BlinkTwoFARequiredError:
57
+
await blink.prompt_2fa()
58
58
return blink
59
59
60
60
blink = asyncio.run(start())
@@ -78,7 +78,10 @@ In some cases, having an interactive command-line session is not desired. In th
78
78
# Can set no_prompt when initializing auth handler
0 commit comments