Clean up code
This commit is contained in:
		
							parent
							
								
									56342923ee
								
							
						
					
					
						commit
						47355d820d
					
				
							
								
								
									
										4
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								main.py
									
									
									
									
									
								
							@ -55,7 +55,7 @@ class SensorServer(Server):
 | 
			
		||||
        return templates.render(
 | 
			
		||||
            f'www/{path or self.default_path}',
 | 
			
		||||
            datetime=util.datetime(),
 | 
			
		||||
            temperature=self.getTemperatureTextValue(),
 | 
			
		||||
            temperature=self.temperatureTextValue(),
 | 
			
		||||
            waterStatus=self.waterTextValue(),
 | 
			
		||||
            waterClass=self.waterCssClass()
 | 
			
		||||
        )
 | 
			
		||||
@ -72,7 +72,7 @@ class SensorServer(Server):
 | 
			
		||||
            'temperature': self.mcp.get_temp()
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    def getTemperatureTextValue(self):
 | 
			
		||||
    def temperatureTextValue(self):
 | 
			
		||||
        return round(self.mcp.get_temp(), 2)
 | 
			
		||||
 | 
			
		||||
    def waterTextValue(self):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user