mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-03-03 19:43:58 +01:00
moved init stuff to onLoad
This commit is contained in:
parent
d8fb6295d8
commit
2aa714fae9
|
|
@ -55,6 +55,12 @@ class BoswatchModule(ModuleBase):
|
||||||
def __init__(self, config):
|
def __init__(self, config):
|
||||||
"""!Do not change anything here!"""
|
"""!Do not change anything here!"""
|
||||||
super().__init__(__name__, config) # you can access the config class on 'self.config'
|
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("starting multicast module")
|
||||||
logging.debug("multicastAlarm_delimiterRic is: %i" % self.config.get("multicastAlarm_delimiterRic"))
|
logging.debug("multicastAlarm_delimiterRic is: %i" % self.config.get("multicastAlarm_delimiterRic"))
|
||||||
logging.debug("multicastAlarm_delimiterSubric is: %i" % self.config.get("multicastAlarm_delimiterSubric"))
|
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(','):
|
for aTextRic in self.config.get("multicastAlarm_textRics").split(','):
|
||||||
self.textRics.append(int(aTextRic))
|
self.textRics.append(int(aTextRic))
|
||||||
self.initStorage()
|
self.initStorage()
|
||||||
|
|
||||||
def onLoad(self):
|
|
||||||
"""!Called by import of the plugin
|
|
||||||
Remove if not implemented"""
|
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def doWork(self, bwPacket):
|
def doWork(self, bwPacket):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue