Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.workday.config_flow Namespace Reference

Classes

class  AddDateRangeError
 
class  AddDatesError
 
class  CountryNotExist
 
class  RemoveDateRangeError
 
class  RemoveDatesError
 
class  WorkdayConfigFlow
 
class  WorkdayOptionsFlowHandler
 

Functions

bool _is_valid_date_range (str check_date, type[HomeAssistantError] error)
 
vol.Schema add_province_and_language_to_schema (vol.Schema schema, str|None country)
 
None validate_custom_dates (dict[str, Any] user_input)
 

Variables

 DATA_SCHEMA_OPT
 

Detailed Description

Adds config flow for Workday integration.

Function Documentation

◆ _is_valid_date_range()

bool homeassistant.components.workday.config_flow._is_valid_date_range ( str  check_date,
type[HomeAssistantError error 
)
private
Validate date range.

Definition at line 117 of file config_flow.py.

◆ add_province_and_language_to_schema()

vol.Schema homeassistant.components.workday.config_flow.add_province_and_language_to_schema ( vol.Schema  schema,
str | None  country 
)
Update schema with province from country.

Definition at line 54 of file config_flow.py.

◆ validate_custom_dates()

None homeassistant.components.workday.config_flow.validate_custom_dates ( dict[str, Any]  user_input)
Validate custom dates for add/remove holidays.

Definition at line 128 of file config_flow.py.

Variable Documentation

◆ DATA_SCHEMA_OPT

homeassistant.components.workday.config_flow.DATA_SCHEMA_OPT

Definition at line 170 of file config_flow.py.