fix invalid read
This commit is contained in:
parent
a0aaaef690
commit
175695d512
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue