moved imports to top level (#27494)
This commit is contained in:
1 parent
42691b783e
commit
3873a1b070
2 files changed
+2
-4
No files matched your search
@@ -68,6 +68,7 @@ associate with an credential if "type" set to "link_user" in
|
||||
"""
|
||||
from aiohttp import web
|
||||
import voluptuous as vol
|
||||
import voluptuous_serialize
|
||||
|
||||
from homeassistant import data_entry_flow
|
||||
from homeassistant.components.http import KEY_REAL_IP
|
||||
@@ -120,8 +121,6 @@ def _prepare_result_json(result):
|
||||
if result["type"] != data_entry_flow.RESULT_TYPE_FORM:
|
||||
return result
|
||||
|
||||
import voluptuous_serialize
|
||||
|
||||
data = result.copy()
|
||||
|
||||
schema = data["data_schema"]
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
import logging
|
||||
|
||||
import voluptuous as vol
|
||||
import voluptuous_serialize
|
||||
|
||||
from homeassistant import data_entry_flow
|
||||
from homeassistant.components import websocket_api
|
||||
@@ -134,8 +135,6 @@ def _prepare_result_json(result):
|
||||
if result["type"] != data_entry_flow.RESULT_TYPE_FORM:
|
||||
return result
|
||||
|
||||
import voluptuous_serialize
|
||||
|
||||
data = result.copy()
|
||||
|
||||
schema = data["data_schema"]
|
||||
|
||||
Reference in new issue
Block a user