mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +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 aiohttp import hdrs, web, web_urldispatcher
|
||||
import hass_frontend
|
||||
import jinja2
|
||||
import voluptuous as vol
|
||||
from yarl import URL
|
||||
@ -241,6 +240,8 @@ def _frontend_root(dev_repo_path):
|
||||
"""Return root path to the frontend files."""
|
||||
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
|
||||
import hass_frontend
|
||||
|
||||
return hass_frontend.where()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user