ds18b20: round reported temps to 2 decimal places

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2021-10-11 14:25:50 -04:00 committed by KevinOConnor
parent c499451ab8
commit 1153803360
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ class DS18B20:
def get_status(self, eventtime): def get_status(self, eventtime):
return { return {
'temperature': self.temp, 'temperature': round(self.temp, 2),
} }
def load_config(config): def load_config(config):