From 3f8bbf7b8f5b008239b26208dc5ffad69c5a5eed Mon Sep 17 00:00:00 2001 From: up-n-atom Date: Sun, 19 Nov 2023 17:17:11 -0500 Subject: [PATCH] Fix host type --- xmo/xmo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmo/xmo.py b/xmo/xmo.py index 2089d17..e86bd83 100644 --- a/xmo/xmo.py +++ b/xmo/xmo.py @@ -28,7 +28,7 @@ class EnumChoice(click.Choice): default=EncryptionMethod.SHA512, type=EnumChoice(EncryptionMethod), help='Authentication method') @click.pass_context -async def cli(ctx: click.Context, host: str, username: str, password: str, auth_method: EncryptionMethod) -> None: +async def cli(ctx: click.Context, host: IPv4Address, username: str, password: str, auth_method: EncryptionMethod) -> None: ctx.obj = client = await ctx.with_async_resource( SagemcomClient(host, username, password, auth_method, ClientSession(