Move imports to top for todoist (#29022)
parent
fe9084bb3b
commit
ee038999fc
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue