mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
move hass-frontend import back down (#28203)
This commit is contained in:
parent
98cf3f4aa3
commit
9153729b21
@ -7,7 +7,6 @@ import pathlib
|
|||||||
from typing import Any, Dict, Optional, Set, Tuple
|
from typing import Any, Dict, Optional, Set, Tuple
|
||||||
|
|
||||||
from aiohttp import hdrs, web, web_urldispatcher
|
from aiohttp import hdrs, web, web_urldispatcher
|
||||||
import hass_frontend
|
|
||||||
import jinja2
|
import jinja2
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
from yarl import URL
|
from yarl import URL
|
||||||
@ -241,6 +240,8 @@ def _frontend_root(dev_repo_path):
|
|||||||
"""Return root path to the frontend files."""
|
"""Return root path to the frontend files."""
|
||||||
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
|
||||||
|
import hass_frontend
|
||||||
|
|
||||||
return hass_frontend.where()
|
return hass_frontend.where()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user