mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	* Replace logging.warn with logging.warning * Install config global state early * Split config.py into more manageable pieces
		
			
				
	
	
		
			16 lines
		
	
	
		
			454 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			454 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."
 | 
						|
    )
 |