-
-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
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
RFC: Add discover method to miiocli #343
Conversation
@@ -210,7 +210,8 @@ def __init__(self, device_class, name=None, invoke_without_command=False, | |||
self.device_class = device_class | |||
self.device_pass = click.make_pass_decorator(device_class) | |||
|
|||
attrs.setdefault('params', self.DEFAULT_PARAMS) | |||
# FIXME: Must be made optional for the "discover" command | |||
#attrs.setdefault('params', self.DEFAULT_PARAMS) |
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.
block comment should start with '# '
My undestanding of the click usage isn't sufficient to complete this PR unfortunately. |
@syssi on which level do you want the discover method to be? Should it be implemented in each device group (for example miiocli airpurifier discover) or as the top command (miiocli discover)? The second approach should be easier regarding the |
@yawor discovery should be done on the global scope, as its main purpose is for users to find to locate (all) available, supported devices. So |
@yawor On global scope cp. #343 (comment) |
Closing this in favor of #1013 |
No description provided.