Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.homeassistant.triggers.time_pattern.TimePattern Class Reference

Public Member Functions

str|int __call__ (self, Any value)
 
None __init__ (self, int maximum)
 

Public Attributes

 maximum
 

Detailed Description

Validate a time pattern value.

:raises Invalid: If the value has a wrong format or is outside the range.

Definition at line 22 of file time_pattern.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.homeassistant.triggers.time_pattern.TimePattern.__init__ (   self,
int  maximum 
)
Initialize time pattern.

Definition at line 28 of file time_pattern.py.

Member Function Documentation

◆ __call__()

str | int homeassistant.components.homeassistant.triggers.time_pattern.TimePattern.__call__ (   self,
Any  value 
)
Validate input.

Definition at line 32 of file time_pattern.py.

Member Data Documentation

◆ maximum

homeassistant.components.homeassistant.triggers.time_pattern.TimePattern.maximum

Definition at line 30 of file time_pattern.py.


The documentation for this class was generated from the following file: