mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +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:
|
||||
return pathlib.Path(dev_repo_path) / "hass_frontend"
|
||||
# Keep import here so that we can import frontend without installing reqs
|
||||
# pylint: disable=import-outside-toplevel
|
||||
import hass_frontend
|
||||
|
||||
return hass_frontend.where()
|
||||
|
@ -1,10 +1,10 @@
|
||||
"""API for persistent storage for the frontend."""
|
||||
from functools import wraps
|
||||
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components import websocket_api
|
||||
|
||||
|
||||
# mypy: allow-untyped-calls, allow-untyped-defs
|
||||
|
||||
DATA_STORAGE = "frontend_storage"
|
||||
|
Loading…
x
Reference in New Issue
Block a user