From 9ea58b970e759d909c7133a6ef29894a11a38e7a Mon Sep 17 00:00:00 2001 From: Malte Franken Date: Wed, 9 Oct 2019 21:02:09 +1100 Subject: [PATCH] Move imports in caldav component (#27349) --- homeassistant/components/caldav/calendar.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/caldav/calendar.py b/homeassistant/components/caldav/calendar.py index 6251679b22512f..2bbff2a6bc78e3 100644 --- a/homeassistant/components/caldav/calendar.py +++ b/homeassistant/components/caldav/calendar.py @@ -4,6 +4,7 @@ import logging import re +import caldav import voluptuous as vol from homeassistant.components.calendar import ( @@ -62,8 +63,6 @@ def setup_platform(hass, config, add_entities, disc_info=None): """Set up the WebDav Calendar platform.""" - import caldav - url = config[CONF_URL] username = config.get(CONF_USERNAME) password = config.get(CONF_PASSWORD)