Move imports to top for todoist (#29022)

pull/29046/head
springstan 2019-11-25 09:43:29 +01:00 committed by cgtobi
parent fe9084bb3b
commit ee038999fc
1 changed files with 1 additions and 2 deletions

View File

@ -2,6 +2,7 @@
from datetime import datetime, timedelta
import logging
from todoist.api import TodoistAPI
import voluptuous as vol
from homeassistant.components.calendar import (
@ -143,8 +144,6 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
project_id_lookup = {}
label_id_lookup = {}
from todoist.api import TodoistAPI
api = TodoistAPI(token)
api.sync()