mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-08-06 18:54:08 +00:00
Relax asyncclick version requirement (#286)
* Add package_name to version_option(), breaks --version on click < 8
This commit is contained in:
@@ -56,7 +56,7 @@ pass_dev = click.make_pass_decorator(SmartDevice)
|
||||
@click.option(
|
||||
"--type", default=None, type=click.Choice(TYPE_TO_CLASS, case_sensitive=False)
|
||||
)
|
||||
@click.version_option()
|
||||
@click.version_option(package_name="python-kasa")
|
||||
@click.pass_context
|
||||
async def cli(ctx, host, alias, target, debug, bulb, plug, lightstrip, strip, type):
|
||||
"""A tool for controlling TP-Link smart home devices.""" # noqa
|
||||
|
Reference in New Issue
Block a user