From 913b858f0e046968ea69ec15ac29404946ca6e40 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 16 May 2025 06:59:38 -0500 Subject: [PATCH] Send test notification if any cameras are enabled --- frigate/comms/webpush.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frigate/comms/webpush.py b/frigate/comms/webpush.py index cbc274aef..47b0bafc7 100644 --- a/frigate/comms/webpush.py +++ b/frigate/comms/webpush.py @@ -173,7 +173,12 @@ class WebPushClient(Communicator): # type: ignore[misc] return self.send_alert(decoded) elif topic == "notification_test": - if not self.config.notifications.enabled: + if not self.config.notifications.enabled and not any( + cam.notifications.enabled for cam in self.config.cameras.values() + ): + logger.debug( + "No cameras have notifications enabled, test notification not sent" + ) return self.send_notification_test()