mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-02-23 00:18:31 +01:00
* backend * frontend * add notification config at camera level * camera level notifications in dispatcher * initial onconnect * frontend * backend for suspended notifications * frontend * use base communicator * initialize all cameras in suspended array and use 0 for unsuspended * remove switch and use select for suspending in frontend * use timestamp instead of datetime * frontend tweaks * mqtt docs * fix button width * use grid for layout * use thread and queue for processing notifications with 10s timeout * clean up * move async code to main class * tweaks * docs * remove warning message
16 lines
455 B
Python
16 lines
455 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.")
|
|
enabled_in_config: Optional[bool] = Field(
|
|
default=None, title="Keep track of original state of notifications."
|
|
)
|