Fix AHT20 read
This commit is contained in:
parent
e5fda49f2d
commit
a8a1f5e983
|
@ -191,9 +191,9 @@ class AHT40(Sensor):
|
||||||
if not enable_aht:
|
if not enable_aht:
|
||||||
return (time, None)
|
return (time, None)
|
||||||
return self.store(
|
return self.store(
|
||||||
time, aht20.get_temperature_crc8() if (
|
time, aht.get_temperature_crc8() if (
|
||||||
self.measure == 'Temperature'
|
self.measure == 'Temperature'
|
||||||
) else aht20.get_humidity_crc8())
|
) else aht.get_humidity_crc8())
|
||||||
|
|
||||||
class Sensors():
|
class Sensors():
|
||||||
def __init__(self, history=2621440):
|
def __init__(self, history=2621440):
|
||||||
|
|
Loading…
Reference in New Issue