mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-01 08:32:18 +03:00
Fixes (#18262)
* Don't use timezone in export dialog timestamps Revert an unnecessary change made in https://github.com/blakeblackshear/frigate/pull/18257 * Ensure notifications register button is only disabled when both all cameras and every individual camera is disabled * Send test notification if any cameras are enabled * clarify docs about disabling cameras * fix crash in autotracking zoom * clean up * masks and zones i18n fixes * Check if camera is enabled in config --------- Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
co-authored by
Nicolas Mowen
parent
2f9b373c1a
commit
ebae6cb1ed
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user