Fix host type
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ class EnumChoice(click.Choice):
|
|||||||
default=EncryptionMethod.SHA512, type=EnumChoice(EncryptionMethod),
|
default=EncryptionMethod.SHA512, type=EnumChoice(EncryptionMethod),
|
||||||
help='Authentication method')
|
help='Authentication method')
|
||||||
@click.pass_context
|
@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(
|
ctx.obj = client = await ctx.with_async_resource(
|
||||||
SagemcomClient(host, username, password, auth_method,
|
SagemcomClient(host, username, password, auth_method,
|
||||||
ClientSession(
|
ClientSession(
|
||||||
|
|||||||
Reference in New Issue
Block a user