| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- from __future__ import annotations
- DOMAIN = "room_cal_ha"
- # entry.data keys
- CONF_ROOM_NAME = "room_name"
- CONF_USERNAME = "username"
- CONF_PASSWORD = "password"
- # entry.options keys
- CONF_SYNC_MODE = "sync_mode"
- CONF_CALDAV_URL = "caldav_url"
- CONF_CALENDAR_NAME = "calendar_name"
- CONF_REFRESH_INTERVAL = "refresh_interval"
- CONF_API_BASE_URL = "api_base_url"
- CONF_RESERVATION_DEFAULTS = "reservation_defaults"
- # entry.data keys (sensitive)
- CONF_API_TOKEN = "api_token"
- # zLock Slots options
- CONF_ZLOCK_ENTRIES = "zlock_entries" # list[str] of zlock_slots config entry IDs
- CONF_ZWAVE_SLOT = "zwave_slot" # int — shared code slot for all locks
- # Sync mode values
- SYNC_MODE_CALDAV = "CalDAV"
- SYNC_MODE_API = "API"
- SYNC_MODE_MANUAL = "Manual"
- # iCal event selection and data extraction
- RESERVATION_TITLE_PREFIX = "Guest: "
- X_DATA_PROP = "X-ROOMCAL-DATA"
- # Sensor field keys — order is significant (used in UI and store)
- SENSOR_KEYS: list[str] = [
- "guest_name",
- "check_in_date",
- "check_in_time",
- "check_out_date",
- "check_out_time",
- "wifi_ssid",
- "wifi_key",
- "door_code",
- ]
- # Update interval
- DEFAULT_REFRESH_INTERVAL = 15
- # Store keys
- STORE_CURRENT = "current"
- STORE_NEXT = "next"
- STORE_ARRIVED = "current_arrived"
- STORE_DEPARTED = "current_departed"
|