Fixing another indentation error

Fixing various errors and adding changelog
This commit is contained in:
Florian 2020-08-01 12:43:35 +02:00
parent 28e9a91173
commit d75800e8d3
2 changed files with 12 additions and 8 deletions

View file

@ -92,14 +92,14 @@ def run(typ,freq,data):
#logging.warning("%s not supported", typ)
elif typ == "POC":
if globalVars.config.get("gpiocontrol", "activerics") == "":
th = threading.Thread(target = trigger)
th.start()
else:
if data["ric"] in globalVars.config.get("gpiocontrol", "activerics"):
th = threading.Thread(target = trigger)
th.start()
else:
logging.info("Ric not in activerics")
th = threading.Thread(target = trigger)
th.start()
else:
if data["ric"] in globalVars.config.get("gpiocontrol", "activerics"):
th = threading.Thread(target = trigger)
th.start()
else:
logging.info("Ric not in activerics")
else:
logging.warning("Invalid Typ: %s", typ)
########## User Plugin CODE ##########