Move imports to top for frontend (#29487)
This commit is contained in:
1 parent
ed5cdb528c
commit
204ca3f3a6
2 files changed
+2
-1
No files matched your search
@@ -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"
|
||||||
|
|||||||
Reference in new issue
Block a user