Update mqtt_publish_temp.py
This commit is contained in:
		
							parent
							
								
									66a25e7719
								
							
						
					
					
						commit
						ec80f06840
					
				@ -61,7 +61,6 @@ while True:
 | 
				
			|||||||
        
 | 
					        
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            humidity = round(float(humidity), 2)
 | 
					            humidity = round(float(humidity), 2)
 | 
				
			||||||
            break
 | 
					 | 
				
			||||||
        except ValueError:
 | 
					        except ValueError:
 | 
				
			||||||
            print("Not able to convert humidity to float: " + humidity)
 | 
					            print("Not able to convert humidity to float: " + humidity)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user