mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-09-05 17:51:36 +02:00
* Enable mypy for comms * Make zmq data types consistent * Cleanup inter process typing issues * Cleanup embeddings typing * Cleanup config updater * Cleanup recordings updator * Make publisher have a generic type * Cleanup event metadata updater * Cleanup event metadata updater * Cleanup detections updater * Cleanup websocket * Cleanup mqtt * Cleanup webpush * Cleanup dispatcher * Formatting * Remove unused * Add return type * Fix tests * Fix semantic triggers config typing * Cleanup
19 lines
574 B
Python
19 lines
574 B
Python
from typing import Optional
|
|
|
|
from pydantic import Field
|
|
|
|
from ..base import FrigateBaseModel
|
|
|
|
__all__ = ["NotificationConfig"]
|
|
|
|
|
|
class NotificationConfig(FrigateBaseModel):
|
|
enabled: bool = Field(default=False, title="Enable notifications")
|
|
email: Optional[str] = Field(default=None, title="Email required for push.")
|
|
cooldown: int = Field(
|
|
default=0, ge=0, title="Cooldown period for notifications (time in seconds)."
|
|
)
|
|
enabled_in_config: Optional[bool] = Field(
|
|
default=None, title="Keep track of original state of notifications."
|
|
)
|