Fix float convertion
This commit is contained in:
		@@ -2,7 +2,10 @@ import re
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def str_to_float(string):
 | 
					def str_to_float(string):
 | 
				
			||||||
    return float(string.replace(",", "."))
 | 
					    try:
 | 
				
			||||||
 | 
					        return int(string)
 | 
				
			||||||
 | 
					    except ValueError:
 | 
				
			||||||
 | 
					        return float(str(string.replace(",", ".")))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class HonParameter:
 | 
					class HonParameter:
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								setup.py
									
									
									
									
									
								
							@@ -7,7 +7,7 @@ with open("README.md", "r") as f:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
setup(
 | 
					setup(
 | 
				
			||||||
    name="pyhOn",
 | 
					    name="pyhOn",
 | 
				
			||||||
    version="0.6.1",
 | 
					    version="0.6.2",
 | 
				
			||||||
    author="Andre Basche",
 | 
					    author="Andre Basche",
 | 
				
			||||||
    description="Control hOn devices with python",
 | 
					    description="Control hOn devices with python",
 | 
				
			||||||
    long_description=long_description,
 | 
					    long_description=long_description,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user