mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-14 23:24:29 -04:00
cut and lower program keys
This commit is contained in:
parent
fe4f6e766e
commit
fc8c92d538
3 changed files with 8 additions and 7 deletions
|
@ -92,9 +92,10 @@ class HonDevice:
|
|||
commands[command] = HonCommand(command, attr, self._connector, self)
|
||||
elif "parameters" in attr[list(attr)[0]]:
|
||||
multi = {}
|
||||
for category, attr2 in attr.items():
|
||||
cmd = HonCommand(command, attr2, self._connector, self, multi=multi, category=category)
|
||||
multi[category] = cmd
|
||||
for program, attr2 in attr.items():
|
||||
program = program.split(".")[-1].lower()
|
||||
cmd = HonCommand(command, attr2, self._connector, self, multi=multi, program=program)
|
||||
multi[program] = cmd
|
||||
commands[command] = cmd
|
||||
self._commands = commands
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue