From 5f3d4f9b03b6832781ebf071952a37a9afecfb97 Mon Sep 17 00:00:00 2001 From: Antonio Fernandez Date: Wed, 13 Nov 2024 15:27:25 -0500 Subject: [PATCH] final fix for true/false and 1/0 --- borgmatic/hooks/pushover.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borgmatic/hooks/pushover.py b/borgmatic/hooks/pushover.py index 9e6877e3..fa3b2b44 100644 --- a/borgmatic/hooks/pushover.py +++ b/borgmatic/hooks/pushover.py @@ -51,7 +51,7 @@ def ping_monitor(hook_config, config, config_filename, state, monitoring_log_lev ) state_config = { - key: (int(value) if value is True and key in 'html' else value) + key: (int(value) if key in 'html' else value) for key, value in state_config.items() }