my.bluemaestro: workaround for weird sensor glitch

This commit is contained in:
Dima Gerasimov 2022-03-14 23:53:36 +00:00 committed by karlicoss
parent 3fd6c81511
commit e750666e30

View file

@ -148,6 +148,11 @@ def measurements() -> Iterable[Res[Measurement]]:
yield RuntimeError('timestamp too far out', f, name, db_dt, dt)
continue
# err.. sometimes my values are just interleaved with these for no apparent reason???
if (temp, hum, pres, dewp) == (-144.1, 100.0, 1152.5, -144.1):
yield RuntimeError('the weird sensor bug')
continue
assert -60 <= temp <= 60, (f, dt, temp)
##