mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 13:47:35 +00:00
Move imports to top for habitica (#29416)
This commit is contained in:
parent
d8dcf17cb5
commit
c79e99318d
@ -2,6 +2,7 @@
|
|||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from habitipy.aio import HabitipyAsync
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
@ -92,7 +93,6 @@ SERVICE_API_CALL_SCHEMA = vol.Schema(
|
|||||||
|
|
||||||
async def async_setup(hass, config):
|
async def async_setup(hass, config):
|
||||||
"""Set up the Habitica service."""
|
"""Set up the Habitica service."""
|
||||||
from habitipy.aio import HabitipyAsync
|
|
||||||
|
|
||||||
conf = config[DOMAIN]
|
conf = config[DOMAIN]
|
||||||
data = hass.data[DOMAIN] = {}
|
data = hass.data[DOMAIN] = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user