Classes work but....

This commit is contained in:
2021-05-10 21:19:56 +02:00
parent 24ab8a96e4
commit f6ceba6605

View File

@ -100,8 +100,6 @@ class Maximum:
class BasePlugin:
#enabled = False
def __init__(self):
# Default hearbeat is 10 seconds, then 30 samples for the 5 minutes
self.max_samples = 30
return
def onStart(self):
@ -281,7 +279,7 @@ class BasePlugin:
m = Average()
m.update(value)
value = m.get()
Domotice.Debug(" = {}".format(value))
Domoticz.Debug(" = {}".format(value))
Devices[6].Update(1, str(value))
if value > 0.0:
import_w = value