moved init stuff to onLoad

This commit is contained in:
Thierry Fredrich 2022-02-16 14:41:54 +01:00
parent d8fb6295d8
commit 2aa714fae9

View file

@ -55,6 +55,12 @@ class BoswatchModule(ModuleBase):
def __init__(self, config):
"""!Do not change anything here!"""
super().__init__(__name__, config) # you can access the config class on 'self.config'
def onLoad(self):
"""!Called by import of the plugin
Remove if not implemented"""
logging.debug("starting multicast module")
logging.debug("multicastAlarm_delimiterRic is: %i" % self.config.get("multicastAlarm_delimiterRic"))
logging.debug("multicastAlarm_delimiterSubric is: %i" % self.config.get("multicastAlarm_delimiterSubric"))
@ -66,10 +72,7 @@ class BoswatchModule(ModuleBase):
for aTextRic in self.config.get("multicastAlarm_textRics").split(','):
self.textRics.append(int(aTextRic))
self.initStorage()
def onLoad(self):
"""!Called by import of the plugin
Remove if not implemented"""
pass
def doWork(self, bwPacket):