From a8a1f5e983ea64f159ba911a3a79260d8e0b26b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=B2=20Balzarotti?= Date: Tue, 14 Mar 2023 22:47:04 +0100 Subject: [PATCH] Fix AHT20 read --- sensors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sensors.py b/sensors.py index 87e3d05..14e5b29 100644 --- a/sensors.py +++ b/sensors.py @@ -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):