mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Move imports to top for frontend (#29487)
This commit is contained in:
parent
ed5cdb528c
commit
204ca3f3a6
@ -242,6 +242,7 @@ def _frontend_root(dev_repo_path):
|
|||||||
if dev_repo_path is not None:
|
if dev_repo_path is not None:
|
||||||
return pathlib.Path(dev_repo_path) / "hass_frontend"
|
return pathlib.Path(dev_repo_path) / "hass_frontend"
|
||||||
# Keep import here so that we can import frontend without installing reqs
|
# Keep import here so that we can import frontend without installing reqs
|
||||||
|
# pylint: disable=import-outside-toplevel
|
||||||
import hass_frontend
|
import hass_frontend
|
||||||
|
|
||||||
return hass_frontend.where()
|
return hass_frontend.where()
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
"""API for persistent storage for the frontend."""
|
"""API for persistent storage for the frontend."""
|
||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components import websocket_api
|
from homeassistant.components import websocket_api
|
||||||
|
|
||||||
|
|
||||||
# mypy: allow-untyped-calls, allow-untyped-defs
|
# mypy: allow-untyped-calls, allow-untyped-defs
|
||||||
|
|
||||||
DATA_STORAGE = "frontend_storage"
|
DATA_STORAGE = "frontend_storage"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user