* 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:
Josh Hawkins
2025-05-16 16:37:25 -06:00
committed by GitHub
co-authored by Nicolas Mowen
parent 2f9b373c1a
commit ebae6cb1ed
8 changed files with 31 additions and 9 deletions
+6 -1
View File
@@ -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()