From 47355d820d9a1f74e5ba74336e357e37d55cd69a Mon Sep 17 00:00:00 2001 From: Mike Cifelli <1836280-mike-cifelli@users.noreply.gitlab.com> Date: Tue, 7 Feb 2023 12:52:52 -0500 Subject: [PATCH] Clean up code --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):