mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-13 22:54:26 -04:00
More general parsing
This commit is contained in:
parent
7dcb34559b
commit
ea8f481b01
10 changed files with 165 additions and 128 deletions
|
@ -4,8 +4,8 @@ from pyhon.parameter.base import HonParameter
|
|||
|
||||
|
||||
class HonParameterEnum(HonParameter):
|
||||
def __init__(self, key: str, attributes: Dict[str, Any]) -> None:
|
||||
super().__init__(key, attributes)
|
||||
def __init__(self, key: str, attributes: Dict[str, Any], group: str) -> None:
|
||||
super().__init__(key, attributes, group)
|
||||
self._default = attributes.get("defaultValue")
|
||||
self._value = self._default or "0"
|
||||
self._values: List[str] = attributes.get("enumValues", [])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue