Update utils.py

This commit is contained in:
b1ackd0t
2022-02-16 16:55:10 +03:00
committed by GitHub
parent 6a2226c4fc
commit 08ab22562a
+2 -2
View File
@@ -38,7 +38,7 @@ class Functions:
def send_alert(self, data, topic, level):
# Sends and sms alert to farmers number
message = "Your {} level is {}".format(topic, level)
sms.send_sms(message, [self.number])
self.sms.send_sms(message, [self.number])
@staticmethod
def get_date_data(date_info):
@@ -149,4 +149,4 @@ class Functions:
"light" : light_av/count,
"moisture" : moisture_av/count
}
return average
return average