From dfbc24452b350f64b9075d3948a9a0cc6df36cd1 Mon Sep 17 00:00:00 2001 From: Andre Basche Date: Tue, 16 May 2023 21:26:15 +0200 Subject: [PATCH] Fix value check --- pyhon/parameter/enum.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyhon/parameter/enum.py b/pyhon/parameter/enum.py index 66cfe7e..2662a94 100644 --- a/pyhon/parameter/enum.py +++ b/pyhon/parameter/enum.py @@ -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: diff --git a/setup.py b/setup.py index ce11516..6fbedf7 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open("README.md", "r") as f: setup( name="pyhOn", - version="0.10.7", + version="0.10.8", author="Andre Basche", description="Control hOn devices with python", long_description=long_description,