Move imports to top for habitica (#29416)

pull/29432/head
springstan 2019-12-04 14:14:19 +01:00 committed by Pascal Vizeli
parent d8dcf17cb5
commit c79e99318d
1 changed files with 1 additions and 1 deletions

View File

@ -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] = {}