mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-13 14:44:28 -04:00
Fixes for fridge
This commit is contained in:
parent
c2765fe953
commit
9cd12e3234
2 changed files with 4 additions and 1 deletions
|
@ -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 str(self._default) not in self.values:
|
||||
if self._default and str(self._default.strip("[]")) not in self.values:
|
||||
self._values.append(self._default)
|
||||
|
||||
def __repr__(self) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue