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