bme280: round reported temps to 2 decimal places
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
9a0bcf21cf
commit
c499451ab8
|
@ -464,7 +464,7 @@ class BME280:
|
|||
|
||||
def get_status(self, eventtime):
|
||||
data = {
|
||||
'temperature': self.temp,
|
||||
'temperature': round(self.temp, 2),
|
||||
'pressure': self.pressure
|
||||
}
|
||||
if self.chip_type in ('BME280', 'BME680'):
|
||||
|
|
Loading…
Reference in New Issue