Local calendar integration (#79601)

This commit is contained in:
Allen Porter 2022-11-30 12:20:21 -08:00 committed by GitHub
parent 8acc114cd9
commit 532ab12a48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 1152 additions and 1 deletions

View file

@ -0,0 +1,24 @@
"""Constants for calendar components."""
from enum import IntEnum
CONF_EVENT = "event"
class CalendarEntityFeature(IntEnum):
"""Supported features of the calendar entity."""
CREATE_EVENT = 1
DELETE_EVENT = 2
# rfc5545 fields
EVENT_UID = "uid"
EVENT_START = "dtstart"
EVENT_END = "dtend"
EVENT_SUMMARY = "summary"
EVENT_DESCRIPTION = "description"
EVENT_LOCATION = "location"
EVENT_RECURRENCE_ID = "recurrence_id"
EVENT_RECURRENCE_RANGE = "recurrence_range"
EVENT_RRULE = "rrule"