mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
Move imports to top for todoist (#29022)
This commit is contained in:
parent
fe9084bb3b
commit
ee038999fc
@ -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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user