Fix AHT20 read

This commit is contained in:
Nicolò Balzarotti 2023-03-14 22:47:04 +01:00
parent e5fda49f2d
commit a8a1f5e983
1 changed files with 2 additions and 2 deletions

View File

@ -191,9 +191,9 @@ class AHT40(Sensor):
if not enable_aht:
return (time, None)
return self.store(
time, aht20.get_temperature_crc8() if (
time, aht.get_temperature_crc8() if (
self.measure == 'Temperature'
) else aht20.get_humidity_crc8())
) else aht.get_humidity_crc8())
class Sensors():
def __init__(self, history=2621440):