mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-20 18:05:17 -04:00
Fix missing program
This commit is contained in:
parent
22cbd7474a
commit
ccff32e6c1
3 changed files with 10 additions and 4 deletions
|
@ -142,8 +142,11 @@ class HonAppliance:
|
|||
if last is None:
|
||||
continue
|
||||
parameters = command_history[last].get("command", {}).get("parameters", {})
|
||||
if command.categories and parameters.get("category"):
|
||||
command.category = parameters.pop("category").split(".")[-1].lower()
|
||||
if command.categories:
|
||||
if parameters.get("program"):
|
||||
command.category = parameters.pop("program").split(".")[-1].lower()
|
||||
else:
|
||||
command.category = parameters.pop("category")
|
||||
command = self.commands[name]
|
||||
for key, data in command.settings.items():
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue