Fix host type

This commit is contained in:
up-n-atom
2023-11-19 17:17:11 -05:00
committed by GitHub
parent 92e93bc50d
commit 3f8bbf7b8f
+1 -1
View File
@@ -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(