1
0
mirror of https://github.com/home-assistant/core.git synced 2026-02-28 13:56:28 +00:00

Move imports to top for frontend (#29487)

This commit is contained in:
springstan
2019-12-05 13:44:59 +01:00
committed by Pascal Vizeli
parent ed5cdb528c
commit 204ca3f3a6
2 changed files with 2 additions and 1 deletions

View File

@@ -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()

View File

@@ -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"