SHT40: reduce head to once in 10 minutes

This commit is contained in:
Nicolò Balzarotti 2023-02-22 03:37:54 +01:00
parent cd54b1896a
commit 0afa5e15a8
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ if enable_sht:
sht.mode = SHT40_DEFAULT sht.mode = SHT40_DEFAULT
class SHT40(Sensor): class SHT40(Sensor):
def __init__(self, what, every=60): def __init__(self, what, every=600):
super().__init__() super().__init__()
if what not in ("Temperature", "Humidity"): if what not in ("Temperature", "Humidity"):
print("ERROR: invalid sensor value: ", what) print("ERROR: invalid sensor value: ", what)