| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -158,6 +158,7 @@ def _legacy_type_to_class(_type): | |
| type=click.Choice(ENCRYPT_TYPES, case_sensitive=False), | ||
| ) | ||
| @click.option( | ||
| "-df", | ||
| "--device-family", | ||
| envvar="KASA_DEVICE_FAMILY", | ||
| default="SMART.TAPOPLUG", | ||
| Expand All | @@ -182,7 +183,7 @@ def _legacy_type_to_class(_type): | |
| @click.option( | ||
| "--discovery-timeout", | ||
| envvar="KASA_DISCOVERY_TIMEOUT", | ||
| default=5, | ||
| default=10, | ||
|
Comment thread
Copy link
Copy Markdown
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityUnsure if we should change this?
Sorry, something went wrong.
All reactions
|
||
| required=False, | ||
| show_default=True, | ||
| help="Timeout for discovery.", | ||
| Expand Down Expand Up | @@ -326,15 +327,11 @@ async def cli( | |
| dev = await Device.connect(config=config) | ||
| device_updated = True | ||
| else: | ||
| from kasa.discover import Discover | ||
| from .discover import discover | ||
|
|
||
| dev = await Discover.discover_single( | ||
| host, | ||
| port=port, | ||
| credentials=credentials, | ||
| timeout=timeout, | ||
| discovery_timeout=discovery_timeout, | ||
| ) | ||
| dev = await ctx.invoke(discover) | ||
| if not dev: | ||
| error(f"Unable to create device for {host}") | ||
|
|
||
| # Skip update on specific commands, or if device factory, | ||
| # that performs an update was used for the device. | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityMaybe it's time to move the string construction to the class itself?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.