Skip to content

Commit

Permalink
Fix value check
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre0512 committed May 16, 2023
1 parent af4fbdd commit dfbc244
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyhon/parameter/enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def __init__(self, key: str, attributes: Dict[str, Any], group: str) -> None:
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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name="pyhOn",
version="0.10.7",
version="0.10.8",
author="Andre Basche",
description="Control hOn devices with python",
long_description=long_description,
Expand Down

0 comments on commit dfbc244

Please sign in to comment.