diff --git a/homeassistant/components/caldav/calendar.py b/homeassistant/components/caldav/calendar.py index b9f967d1a08..7591722b1ab 100644 --- a/homeassistant/components/caldav/calendar.py +++ b/homeassistant/components/caldav/calendar.py @@ -10,7 +10,7 @@ import voluptuous as vol from homeassistant.components.calendar import ( ENTITY_ID_FORMAT, - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CALENDAR_PLATFORM_SCHEMA, CalendarEntity, CalendarEvent, is_offset_reached, @@ -48,7 +48,7 @@ CONFIG_ENTRY_DEFAULT_DAYS = 7 # Only allow VCALENDARs that support this component type SUPPORTED_COMPONENT = "VEVENT" -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = CALENDAR_PLATFORM_SCHEMA.extend( { vol.Required(CONF_URL): vol.Url(), vol.Optional(CONF_CALENDARS, default=[]): vol.All(cv.ensure_list, [cv.string]), diff --git a/homeassistant/components/todoist/calendar.py b/homeassistant/components/todoist/calendar.py index baa7103f7eb..1c6f40005c1 100644 --- a/homeassistant/components/todoist/calendar.py +++ b/homeassistant/components/todoist/calendar.py @@ -14,7 +14,7 @@ from todoist_api_python.models import Due, Label, Task import voluptuous as vol from homeassistant.components.calendar import ( - PLATFORM_SCHEMA, + PLATFORM_SCHEMA as CALENDAR_PLATFORM_SCHEMA, CalendarEntity, CalendarEvent, ) @@ -82,7 +82,7 @@ NEW_TASK_SERVICE_SCHEMA = vol.Schema( } ) -PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend( +PLATFORM_SCHEMA = CALENDAR_PLATFORM_SCHEMA.extend( { vol.Required(CONF_TOKEN): cv.string, vol.Optional(CONF_EXTRA_PROJECTS, default=[]): vol.All(