From fec91e2d824b7ab9d446707e0d74d5a6e7629b76 Mon Sep 17 00:00:00 2001 From: Kyle Isom Date: Sat, 26 Feb 2022 19:13:24 -0800 Subject: [PATCH] Fix timestamp. --- chime/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chime/sensor.py b/chime/sensor.py index ff302f9..7b9c497 100644 --- a/chime/sensor.py +++ b/chime/sensor.py @@ -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,