mirror of
https://github.com/Andre0512/pyhOn.git
synced 2024-12-22 10:45:31 +00:00
Fix value check
This commit is contained in:
parent
af4fbdd8cd
commit
dfbc24452b
|
@ -9,7 +9,7 @@ class HonParameterEnum(HonParameter):
|
|||
self._default = attributes.get("defaultValue")
|
||||
self._value = self._default or "0"
|
||||
self._values: List[str] = attributes.get("enumValues", [])
|
||||
if self._default and self._default not in self._values:
|
||||
if self._default and str(self._default) not in self.values:
|
||||
self._values.append(self._default)
|
||||
|
||||
def __repr__(self) -> str:
|
||||
|
|
Loading…
Reference in a new issue