* add optional config_flow step of uploading .ics file to import local calendar events * feat: add unit test for import_ics step * fix: remove unneeded test patch * feat: add helper for moving ics to storage location * move helper to config_flow * ruff * fix tests; add test for invalid ics content * Update homeassistant/components/local_calendar/config_flow.py * Update import flow with radio button and improved text Signed-off-by: Allen Porter <allen.porter@gmail.com> * Remove commented out code * Update with lint fixes * Apply suggestions from code review Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io> --------- Signed-off-by: Allen Porter <allen.porter@gmail.com> Co-authored-by: Allen Porter <allen.porter@gmail.com> Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
13 lines
329 B
Python
13 lines
329 B
Python
"""Constants for the Local Calendar integration."""
|
|
|
|
DOMAIN = "local_calendar"
|
|
|
|
CONF_CALENDAR_NAME = "calendar_name"
|
|
CONF_ICS_FILE = "ics_file"
|
|
CONF_IMPORT = "import"
|
|
CONF_STORAGE_KEY = "storage_key"
|
|
|
|
ATTR_CREATE_EMPTY = "create_empty"
|
|
ATTR_IMPORT_ICS_FILE = "import_ics_file"
|
|
|
|
STORAGE_PATH = ".storage/local_calendar.{key}.ics"
|