Move imports to top for habitica (#29416)
parent
d8dcf17cb5
commit
c79e99318d
|
@ -2,6 +2,7 @@
|
|||
from collections import namedtuple
|
||||
import logging
|
||||
|
||||
from habitipy.aio import HabitipyAsync
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.const import (
|
||||
|
@ -92,7 +93,6 @@ SERVICE_API_CALL_SCHEMA = vol.Schema(
|
|||
|
||||
async def async_setup(hass, config):
|
||||
"""Set up the Habitica service."""
|
||||
from habitipy.aio import HabitipyAsync
|
||||
|
||||
conf = config[DOMAIN]
|
||||
data = hass.data[DOMAIN] = {}
|
||||
|
|
Loading…
Reference in New Issue