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

Classes

class  LocalCalendarConfigFlow
 

Functions

def save_uploaded_ics_file (HomeAssistant hass, str uploaded_file_id, str storage_key)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 STEP_IMPORT_DATA_SCHEMA
 
 STEP_USER_DATA_SCHEMA
 

Detailed Description

Config flow for Local Calendar integration.

Function Documentation

◆ save_uploaded_ics_file()

def homeassistant.components.local_calendar.config_flow.save_uploaded_ics_file ( HomeAssistant  hass,
str  uploaded_file_id,
str   storage_key 
)
Validate the uploaded file and move it to the storage directory.

Definition at line 115 of file config_flow.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.local_calendar.config_flow._LOGGER = logging.getLogger(__name__)
private

Definition at line 32 of file config_flow.py.

◆ STEP_IMPORT_DATA_SCHEMA

homeassistant.components.local_calendar.config_flow.STEP_IMPORT_DATA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_ICS_FILE): selector.FileSelector(
4  config=selector.FileSelectorConfig(accept=".ics")
5  ),
6  }
7 )

Definition at line 49 of file config_flow.py.

◆ STEP_USER_DATA_SCHEMA

homeassistant.components.local_calendar.config_flow.STEP_USER_DATA_SCHEMA
Initial value:
1 = vol.Schema(
2  {
3  vol.Required(CONF_CALENDAR_NAME): str,
4  vol.Optional(CONF_IMPORT, default=ATTR_CREATE_EMPTY): selector.SelectSelector(
5  selector.SelectSelectorConfig(
6  options=[
7  ATTR_CREATE_EMPTY,
8  ATTR_IMPORT_ICS_FILE,
9  ],
10  translation_key=CONF_IMPORT,
11  )
12  ),
13  }
14 )

Definition at line 34 of file config_flow.py.