Skip to content

Commit a11b944

Browse files
authored
Update chuangmi_ir.py to accept 2 arguments (frequency and length) (#1091)
Changed the arg_types variable to have a length of 2 in order to be able to use something like this (both frequency and length): miiocli chuangmiir --ip 192.168.10.14 --token REDACTED play "raw:mc0mU0lkxm00mEsmkznEsmMzmM0AIqazYAPwA1Ag8BjwIfAy8DLwMvAZ8BnwIfAY8BjwA/AD8APwA/AD8APwA/AD8APwqPCo8PzwIfAD8APwSfFX8FHwA/AD8APwA/AD8APwA/AD8APwA/AD8APwA/AD8APwA/AD8APwA/AD8APxgfFw8APwKPAY+bA=:38000:224"
1 parent 59e1603 commit a11b944

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

miio/chuangmi_ir.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def play(self, command: str):
153153
else:
154154
command_type, command, *command_args = command.split(":")
155155

156-
arg_types = [int]
156+
arg_types = [int, int]
157157
if len(command_args) > len(arg_types):
158158
raise ChuangmiIrException("Invalid command arguments count")
159159

0 commit comments

Comments
 (0)