Fix timestamp.
This commit is contained in:
parent
f840608df9
commit
fec91e2d82
|
@ -61,7 +61,7 @@ class Reading:
|
|||
|
||||
def json(self) -> bytes:
|
||||
return bytes(json.dumps({
|
||||
'timestamp': self.time.timestamp,
|
||||
'timestamp': self.time.timestamp(),
|
||||
'temperature': self.temp,
|
||||
'pressure': self.press,
|
||||
'relative_humidity': self.hum,
|
||||
|
|
Loading…
Reference in New Issue