htu21d: Update htu21d.py (#4520)

Line 202: should be self.humidity instead of self.temp

Signed-off-by: Dawid Murawski <dawid.m@gmx.net>
This commit is contained in:
dawidmpunkt
2021-08-17 21:52:47 +02:00
committed by GitHub
parent f313a2294a
commit b4ee93043a

View File

@@ -199,7 +199,7 @@ class HTU21D:
if (self.humidity < 0):
#due to RH accuracy, measured value might be
# slightly less than 0 or more 100
self.temp = 0
self.humidity = 0
elif (self.humidity > 100):
self.humidity = 100
# Only for HTU21D & SHT21.