Compare commits

...

1 Commits

Author SHA1 Message Date
79c9678492 Fix float convertion 2023-04-10 18:48:46 +02:00
2 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,10 @@ import re
def str_to_float(string):
return float(string.replace(",", "."))
try:
return int(string)
except ValueError:
return float(str(string.replace(",", ".")))
class HonParameter:

View File

@ -7,7 +7,7 @@ with open("README.md", "r") as f:
setup(
name="pyhOn",
version="0.6.1",
version="0.6.2",
author="Andre Basche",
description="Control hOn devices with python",
long_description=long_description,