mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Move imports in caldav component (#27349)
This commit is contained in:
parent
3d937bfd8a
commit
9ea58b970e
@ -4,6 +4,7 @@ from datetime import datetime, timedelta
|
|||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
import caldav
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.calendar import (
|
from homeassistant.components.calendar import (
|
||||||
@ -62,8 +63,6 @@ MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=15)
|
|||||||
|
|
||||||
def setup_platform(hass, config, add_entities, disc_info=None):
|
def setup_platform(hass, config, add_entities, disc_info=None):
|
||||||
"""Set up the WebDav Calendar platform."""
|
"""Set up the WebDav Calendar platform."""
|
||||||
import caldav
|
|
||||||
|
|
||||||
url = config[CONF_URL]
|
url = config[CONF_URL]
|
||||||
username = config.get(CONF_USERNAME)
|
username = config.get(CONF_USERNAME)
|
||||||
password = config.get(CONF_PASSWORD)
|
password = config.get(CONF_PASSWORD)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user