From 1153803360d1b62fb3c650b336b29b7a1a21473d Mon Sep 17 00:00:00 2001 From: Eric Callahan Date: Mon, 11 Oct 2021 14:25:50 -0400 Subject: [PATCH] ds18b20: round reported temps to 2 decimal places Signed-off-by: Eric Callahan --- klippy/extras/ds18b20.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/ds18b20.py b/klippy/extras/ds18b20.py index a8ca75e0..749ae520 100644 --- a/klippy/extras/ds18b20.py +++ b/klippy/extras/ds18b20.py @@ -69,7 +69,7 @@ class DS18B20: def get_status(self, eventtime): return { - 'temperature': self.temp, + 'temperature': round(self.temp, 2), } def load_config(config):