mirror of https://github.com/Desuuuu/klipper.git
htu21d: round reported temps to 2 decimal places
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
e65b2593c6
commit
916ef4483a
|
@ -236,7 +236,7 @@ class HTU21D:
|
|||
|
||||
def get_status(self, eventtime):
|
||||
return {
|
||||
'temperature': self.temp,
|
||||
'temperature': round(self.temp, 2),
|
||||
'humidity': self.humidity,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue