mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-13 22:54:26 -04:00
Fix missing program
This commit is contained in:
parent
22cbd7474a
commit
ccff32e6c1
3 changed files with 10 additions and 4 deletions
|
@ -12,7 +12,10 @@ class HonParameterProgram(HonParameterEnum):
|
|||
def __init__(self, key: str, command: "HonCommand", group: str) -> None:
|
||||
super().__init__(key, {}, group)
|
||||
self._command = command
|
||||
self._value: str = command.category
|
||||
if "PROGRAM" in command.category:
|
||||
self._value: str = command.category.split(".")[-1].lower()
|
||||
else:
|
||||
self._value: str = command.category
|
||||
self._programs: Dict[str, "HonCommand"] = command.categories
|
||||
self._typology: str = "enum"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue