mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-13 22:54:26 -04:00
Fix command parameter issue hon#63
This commit is contained in:
parent
7b51caecca
commit
11988c73a6
7 changed files with 18 additions and 6 deletions
|
@ -27,6 +27,10 @@ class HonParameterEnum(HonParameter):
|
|||
def values(self, values) -> None:
|
||||
self._values = values
|
||||
|
||||
@property
|
||||
def intern_value(self) -> str:
|
||||
return str(self._value) if self._value is not None else str(self.values[0])
|
||||
|
||||
@property
|
||||
def value(self) -> str | float:
|
||||
return clean_value(self._value) if self._value is not None else self.values[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue