Skip to content

Commit

Permalink
Fix a name clash of click_common and the argument "command" of device…
Browse files Browse the repository at this point in the history
… methods (Closes: #325) (#328)
  • Loading branch information
syssi authored Jun 2, 2018
1 parent cb00583 commit 2f0b75a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions miio/click_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ def group_callback(self, ctx, *args, **kwargs):
kwargs['debug'] = gco.debug
ctx.obj = self.device_class(*args, **kwargs)

def command_callback(self, command, device, *args, **kwargs):
return command.call(device, *args, **kwargs)
def command_callback(self, miio_command, miio_device, *args, **kwargs):
return miio_command.call(miio_device, *args, **kwargs)

def get_command(self, ctx, cmd_name):
if cmd_name not in self.commands:
Expand Down

0 comments on commit 2f0b75a

Please sign in to comment.