mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Move imports to top for todoist (#29022)
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from todoist.api import TodoistAPI
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.calendar import (
|
from homeassistant.components.calendar import (
|
||||||
@@ -143,8 +144,6 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||||||
project_id_lookup = {}
|
project_id_lookup = {}
|
||||||
label_id_lookup = {}
|
label_id_lookup = {}
|
||||||
|
|
||||||
from todoist.api import TodoistAPI
|
|
||||||
|
|
||||||
api = TodoistAPI(token)
|
api = TodoistAPI(token)
|
||||||
api.sync()
|
api.sync()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user