Skip to content

Commit dfbc244

Browse files
committed
Fix value check
1 parent af4fbdd commit dfbc244

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyhon/parameter/enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def __init__(self, key: str, attributes: Dict[str, Any], group: str) -> None:
99
self._default = attributes.get("defaultValue")
1010
self._value = self._default or "0"
1111
self._values: List[str] = attributes.get("enumValues", [])
12-
if self._default and self._default not in self._values:
12+
if self._default and str(self._default) not in self.values:
1313
self._values.append(self._default)
1414

1515
def __repr__(self) -> str:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name="pyhOn",
10-
version="0.10.7",
10+
version="0.10.8",
1111
author="Andre Basche",
1212
description="Control hOn devices with python",
1313
long_description=long_description,

0 commit comments

Comments
 (0)