From 740a720c824476f9227c51de8a1d65fe6daafdef Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Tue, 5 Jan 2021 19:41:44 +0100 Subject: [PATCH] Bug-Fix: gradient_monitor initialisation --- dht.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dht.py b/dht.py index 537f2c3..c8382bc 100644 --- a/dht.py +++ b/dht.py @@ -28,8 +28,8 @@ class dht_22(background_task): def __init__(self, gpio, data_callback=None): self.__data_callback__ = data_callback - self.__temp_monitor__ = gradient_monitor(.5, 'DHT Temperature') - self.__hum_monitor__ = gradient_monitor(5, 'DHT Humidity') + self.__temp_monitor__ = gradient_monitor(.5) + self.__hum_monitor__ = gradient_monitor(5) self.__monitor__ = dht_22_monitor(300) # Initial the dht device, with data pin connected to: if not DEBUG: