mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-20 15:20:16 +01:00
Keinen Default für priority
Ist kein Wert oder ein anderer Wert als true/false für priority gesetzt, wird ein Divera-Alarm ausgelassen.
This commit is contained in:
parent
0dfe1ee89c
commit
ddbddbbcdd
|
|
@ -83,7 +83,7 @@ def run(typ, freq, data):
|
|||
elif data["function"] == '4':
|
||||
priority = globalVars.config.get("Divera", "SubD")
|
||||
else:
|
||||
priority = 'false'
|
||||
priority = ''
|
||||
|
||||
text = globalVars.config.get("Divera", "poc_text")
|
||||
title = globalVars.config.get("Divera", "poc_title")
|
||||
|
|
@ -109,7 +109,8 @@ def run(typ, freq, data):
|
|||
|
||||
# check priority value
|
||||
if (priority != 'false') and (priority != 'true'):
|
||||
priority = 'false'
|
||||
logging.info("No Priority set for type '%s'! Skipping Divera-Alarm!", typ)
|
||||
return
|
||||
|
||||
# start the connection
|
||||
conn = httplib.HTTPSConnection("www.divera247.com:443")
|
||||
|
|
|
|||
Loading…
Reference in a new issue