mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Move imports to top for onboarding (#29542)
This commit is contained in:
parent
b4c95421d3
commit
e2adfc3979
@ -1,9 +1,10 @@
|
||||
"""Support to help onboard new users."""
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.loader import bind_hass
|
||||
from homeassistant.helpers.storage import Store
|
||||
from homeassistant.loader import bind_hass
|
||||
|
||||
from .const import DOMAIN, STEP_USER, STEPS, STEP_INTEGRATION, STEP_CORE_CONFIG
|
||||
from . import views
|
||||
from .const import DOMAIN, STEP_CORE_CONFIG, STEP_INTEGRATION, STEP_USER, STEPS
|
||||
|
||||
STORAGE_KEY = DOMAIN
|
||||
STORAGE_VERSION = 3
|
||||
@ -64,8 +65,6 @@ async def async_setup(hass, config):
|
||||
|
||||
hass.data[DOMAIN] = data
|
||||
|
||||
from . import views
|
||||
|
||||
await views.async_setup(hass, data, store)
|
||||
|
||||
return True
|
||||
|
@ -8,12 +8,12 @@ from homeassistant.components.http.view import HomeAssistantView
|
||||
from homeassistant.core import callback
|
||||
|
||||
from .const import (
|
||||
DEFAULT_AREAS,
|
||||
DOMAIN,
|
||||
STEP_CORE_CONFIG,
|
||||
STEP_INTEGRATION,
|
||||
STEP_USER,
|
||||
STEPS,
|
||||
DEFAULT_AREAS,
|
||||
STEP_INTEGRATION,
|
||||
STEP_CORE_CONFIG,
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user