diff --git a/main.py b/main.py index b44389d..f1fcc9a 100644 --- a/main.py +++ b/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):