From 175695d51257ed4c1bda3e7db3716f065da9879d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Thu, 5 Jan 2023 13:27:31 +0100 Subject: [PATCH] fix invalid read --- sensors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sensors.py b/sensors.py index 43a22c5..e70ef97 100644 --- a/sensors.py +++ b/sensors.py @@ -41,7 +41,7 @@ class Temperature1W(Sensor): return None if content[0].strip()[-3:] != "YES": print("INVALID CHECKSUM") - return None + return (time, None) return (time, int(re.search("t=([0-9]+)", content[1]).group(1)) / 1000.0) class Sensors():