Ignore ProPresenter API's harmless yellow warning
It flickers to "warning" every 15-20 minutes and made APPS blink for nothing. "ignore_warning" on a conn check keeps offline, error and disabled as alarms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+7
-1
@@ -221,7 +221,13 @@ def to_int(text):
|
||||
|
||||
|
||||
def check_conn(chk, snap, ctx):
|
||||
return [("conn", conn_result(snap, chk["conn"], ctx["now"], chk.get("service_only", False)))]
|
||||
res = conn_result(snap, chk["conn"], ctx["now"], chk.get("service_only", False))
|
||||
# "ignore_warning": the module's yellow warning state is harmless for this one (ProPresenter's
|
||||
# API flickers to warning every 15-20 min); offline, error and disabled still alarm.
|
||||
c = snap.conns.get(chk["conn"], {})
|
||||
if chk.get("ignore_warning") and res.level == WARN and c.get("enabled") and c.get("category") == "warning":
|
||||
res = Result(OK)
|
||||
return [("conn", res)]
|
||||
|
||||
|
||||
def hyperdeck_recording(snap, label):
|
||||
|
||||
Reference in New Issue
Block a user