From 204ca3f3a6e24ef11ece2e2ee490a8d77553c147 Mon Sep 17 00:00:00 2001 From: springstan <46536646+springstan@users.noreply.github.com> Date: Thu, 5 Dec 2019 13:44:59 +0100 Subject: [PATCH] Move imports to top for frontend (#29487) --- homeassistant/components/frontend/__init__.py | 1 + homeassistant/components/frontend/storage.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/frontend/__init__.py b/homeassistant/components/frontend/__init__.py index 7ef2bd38644..efb1c34653b 100644 --- a/homeassistant/components/frontend/__init__.py +++ b/homeassistant/components/frontend/__init__.py @@ -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() diff --git a/homeassistant/components/frontend/storage.py b/homeassistant/components/frontend/storage.py index 75b7b356ef9..2f68c5f8e01 100644 --- a/homeassistant/components/frontend/storage.py +++ b/homeassistant/components/frontend/storage.py @@ -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"