mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Move imports to top for mobile_app (#29511)
This commit is contained in:
parent
19893b8f3c
commit
1846b45cb5
@ -111,7 +111,7 @@ def error_response(
|
|||||||
def supports_encryption() -> bool:
|
def supports_encryption() -> bool:
|
||||||
"""Test if we support encryption."""
|
"""Test if we support encryption."""
|
||||||
try:
|
try:
|
||||||
import nacl # noqa: F401 pylint: disable=unused-import
|
import nacl # noqa: F401 pylint: disable=unused-import, import-outside-toplevel
|
||||||
|
|
||||||
return True
|
return True
|
||||||
except OSError:
|
except OSError:
|
||||||
|
@ -6,7 +6,6 @@ from aiohttp.web import Request, Response
|
|||||||
from nacl.secret import SecretBox
|
from nacl.secret import SecretBox
|
||||||
|
|
||||||
from homeassistant.auth.util import generate_secret
|
from homeassistant.auth.util import generate_secret
|
||||||
|
|
||||||
from homeassistant.components.http import HomeAssistantView
|
from homeassistant.components.http import HomeAssistantView
|
||||||
from homeassistant.components.http.data_validator import RequestDataValidator
|
from homeassistant.components.http.data_validator import RequestDataValidator
|
||||||
from homeassistant.const import CONF_WEBHOOK_ID, HTTP_CREATED
|
from homeassistant.const import CONF_WEBHOOK_ID, HTTP_CREATED
|
||||||
|
Loading…
x
Reference in New Issue
Block a user