From ef34c29f349763bbcb234a3013f8104037f35dbe Mon Sep 17 00:00:00 2001 From: Sebastian Muszynski Date: Sat, 2 Jun 2018 09:21:29 +0200 Subject: [PATCH] Fix a name clash of click_common and the argument "command" of device methods (Closes: #325) --- miio/click_common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miio/click_common.py b/miio/click_common.py index 1de4c0f52..7a3553bd2 100644 --- a/miio/click_common.py +++ b/miio/click_common.py @@ -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]