mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
moved imports to top level (#27494)
This commit is contained in:
parent
42691b783e
commit
3873a1b070
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user