Skip to content

Commit 40cc035

Browse files
committed
Use enum for website and totp
1 parent 191d65f commit 40cc035

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ async def main():
6868
ItemField(
6969
id="onetimepassword",
7070
title="one-time-password",
71-
field_type="Totp",
71+
field_type=ItemFieldType.TOTP,
7272
section_id="totpsection",
7373
value="otpauth://totp/my-example-otp?secret=jncrjgbdjnrncbjsr&issuer=1Password",
7474
),
@@ -82,7 +82,7 @@ async def main():
8282
Website(
8383
label="my custom website",
8484
url="https://example.com",
85-
autofill_behavior="AnywhereOnWebsite",
85+
autofill_behavior=AutofillBehavior.NEVER,
8686
)
8787
],
8888
)

0 commit comments

Comments
 (0)