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)
  • Loading branch information
syssi committed Jun 2, 2018
1 parent b5738af commit ef34c29
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):
cmd = self.commands[cmd_name]
Expand Down

0 comments on commit ef34c29

Please sign in to comment.