mirror of
https://github.com/home-assistant/core.git
synced 2026-09-07 05:52:27 +01:00
14 lines
472 B
Python
14 lines
472 B
Python
"""Constants for CalDAV."""
|
|
|
|
from typing import Final
|
|
|
|
from homeassistant.util.hass_dict import HassKey
|
|
|
|
DOMAIN: Final = "caldav"
|
|
TIMEOUT: Final = 30
|
|
|
|
# Calendars we have already warned about, keyed by (url, component). This is
|
|
# deliberately not stored on a config entry: the warning is per CalDAV server
|
|
# and must survive reloads, and the same server may back more than one entry.
|
|
WARNED_CALENDARS: HassKey[set[tuple[str, str]]] = HassKey(f"{DOMAIN}_warned_calendars")
|