aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/htu21d.py
diff options
context:
space:
mode:
authorEric Callahan <arksine.code@gmail.com>2021-10-11 14:26:25 -0400
committerKevinOConnor <kevin@koconnor.net>2021-10-15 18:01:19 -0400
commit916ef4483ac92a7c4d127ef63346cddedccb4014 (patch)
treec844f646773a039de2401b9e1f1fcbb1af6c4c2b /klippy/extras/htu21d.py
parente65b2593c67b223f1cca1328794b353d0669e43a (diff)
downloadkutter-916ef4483ac92a7c4d127ef63346cddedccb4014.tar.gz
kutter-916ef4483ac92a7c4d127ef63346cddedccb4014.tar.xz
kutter-916ef4483ac92a7c4d127ef63346cddedccb4014.zip
htu21d: round reported temps to 2 decimal places
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Diffstat (limited to 'klippy/extras/htu21d.py')
-rw-r--r--klippy/extras/htu21d.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/htu21d.py b/klippy/extras/htu21d.py
index 52e2f75e..74a6ad20 100644
--- a/klippy/extras/htu21d.py
+++ b/klippy/extras/htu21d.py
@@ -236,7 +236,7 @@ class HTU21D:
def get_status(self, eventtime):
return {
- 'temperature': self.temp,
+ 'temperature': round(self.temp, 2),
'humidity': self.humidity,
}