moved imports to top level (#27641)
This commit is contained in:
parent
a79a9809f4
commit
6d4e3945d6
1 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
||||||
"""Http views to control the config manager."""
|
"""Http views to control the config manager."""
|
||||||
import aiohttp.web_exceptions
|
import aiohttp.web_exceptions
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
import voluptuous_serialize
|
||||||
|
|
||||||
from homeassistant import config_entries, data_entry_flow
|
from homeassistant import config_entries, data_entry_flow
|
||||||
from homeassistant.auth.permissions.const import CAT_CONFIG_ENTRIES
|
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:
|
if result["type"] != data_entry_flow.RESULT_TYPE_FORM:
|
||||||
return result
|
return result
|
||||||
|
|
||||||
import voluptuous_serialize
|
|
||||||
|
|
||||||
data = result.copy()
|
data = result.copy()
|
||||||
|
|
||||||
schema = data["data_schema"]
|
schema = data["data_schema"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue