bme280: 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:26 -04:00 committed by KevinOConnor
parent 9a0bcf21cf
commit c499451ab8
1 changed files with 1 additions and 1 deletions

View File

@ -464,7 +464,7 @@ class BME280:
def get_status(self, eventtime): def get_status(self, eventtime):
data = { data = {
'temperature': self.temp, 'temperature': round(self.temp, 2),
'pressure': self.pressure 'pressure': self.pressure
} }
if self.chip_type in ('BME280', 'BME680'): if self.chip_type in ('BME280', 'BME680'):