From 87e76f0236ce62dd181bfae6816b5525af1003e9 Mon Sep 17 00:00:00 2001 From: Bouni Date: Mon, 14 Oct 2019 15:01:21 +0200 Subject: [PATCH] moved imports to top level --- homeassistant/components/config/config_entries.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/homeassistant/components/config/config_entries.py b/homeassistant/components/config/config_entries.py index b21991a8479180..81065665e34394 100644 --- a/homeassistant/components/config/config_entries.py +++ b/homeassistant/components/config/config_entries.py @@ -1,6 +1,7 @@ """Http views to control the config manager.""" import aiohttp.web_exceptions import voluptuous as vol +import voluptuous_serialize from homeassistant import config_entries, data_entry_flow from homeassistant.auth.permissions.const import CAT_CONFIG_ENTRIES @@ -41,8 +42,6 @@ def _prepare_json(result): if result["type"] != data_entry_flow.RESULT_TYPE_FORM: return result - import voluptuous_serialize - data = result.copy() schema = data["data_schema"]