Move imports to top for google_assistant (#29561)
* Move imports to top for google_assistant * Fix pylint error caused by isorting the imports with noqa: F401 * Move back an import because of circular dependency, add annotations
This commit is contained in:
1 parent
cc9589cff2
commit
b759d50900
7 files changed
+71
-69
No files matched your search
@@ -3,10 +3,10 @@ import asyncio
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
from uuid import uuid4
|
||||
import jwt
|
||||
|
||||
from aiohttp import ClientResponseError, ClientError
|
||||
from aiohttp import ClientError, ClientResponseError
|
||||
from aiohttp.web import Request, Response
|
||||
import jwt
|
||||
|
||||
# Typing imports
|
||||
from homeassistant.components.http import HomeAssistantView
|
||||
@@ -15,24 +15,24 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
from homeassistant.util import dt as dt_util
|
||||
|
||||
from .const import (
|
||||
GOOGLE_ASSISTANT_API_ENDPOINT,
|
||||
CONF_API_KEY,
|
||||
CONF_EXPOSE_BY_DEFAULT,
|
||||
CONF_EXPOSED_DOMAINS,
|
||||
CONF_CLIENT_EMAIL,
|
||||
CONF_ENTITY_CONFIG,
|
||||
CONF_EXPOSE,
|
||||
CONF_EXPOSE_BY_DEFAULT,
|
||||
CONF_EXPOSED_DOMAINS,
|
||||
CONF_PRIVATE_KEY,
|
||||
CONF_REPORT_STATE,
|
||||
CONF_SECURE_DEVICES_PIN,
|
||||
CONF_SERVICE_ACCOUNT,
|
||||
CONF_CLIENT_EMAIL,
|
||||
CONF_PRIVATE_KEY,
|
||||
HOMEGRAPH_TOKEN_URL,
|
||||
GOOGLE_ASSISTANT_API_ENDPOINT,
|
||||
HOMEGRAPH_SCOPE,
|
||||
HOMEGRAPH_TOKEN_URL,
|
||||
REPORT_STATE_BASE_URL,
|
||||
REQUEST_SYNC_BASE_URL,
|
||||
)
|
||||
from .smart_home import async_handle_message
|
||||
from .helpers import AbstractConfig
|
||||
from .smart_home import async_handle_message
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
||||
Reference in new issue
Block a user