Sort imports according to PEP8 for locative (#29698)
This commit is contained in:
parent
642655b6d7
commit
a78fe25871
4 changed files with 8 additions and 8 deletions
|
@ -2,21 +2,21 @@
|
||||||
import logging
|
import logging
|
||||||
from typing import Dict
|
from typing import Dict
|
||||||
|
|
||||||
import voluptuous as vol
|
|
||||||
from aiohttp import web
|
from aiohttp import web
|
||||||
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
from homeassistant.components.device_tracker import DOMAIN as DEVICE_TRACKER
|
from homeassistant.components.device_tracker import DOMAIN as DEVICE_TRACKER
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
HTTP_UNPROCESSABLE_ENTITY,
|
ATTR_ID,
|
||||||
ATTR_LATITUDE,
|
ATTR_LATITUDE,
|
||||||
ATTR_LONGITUDE,
|
ATTR_LONGITUDE,
|
||||||
STATE_NOT_HOME,
|
|
||||||
CONF_WEBHOOK_ID,
|
CONF_WEBHOOK_ID,
|
||||||
ATTR_ID,
|
|
||||||
HTTP_OK,
|
HTTP_OK,
|
||||||
|
HTTP_UNPROCESSABLE_ENTITY,
|
||||||
|
STATE_NOT_HOME,
|
||||||
)
|
)
|
||||||
from homeassistant.helpers import config_entry_flow
|
from homeassistant.helpers import config_entry_flow
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
"""Config flow for Locative."""
|
"""Config flow for Locative."""
|
||||||
from homeassistant.helpers import config_entry_flow
|
from homeassistant.helpers import config_entry_flow
|
||||||
from .const import DOMAIN
|
|
||||||
|
|
||||||
|
from .const import DOMAIN
|
||||||
|
|
||||||
config_entry_flow.register_webhook_flow(
|
config_entry_flow.register_webhook_flow(
|
||||||
DOMAIN,
|
DOMAIN,
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
"""Support for the Locative platform."""
|
"""Support for the Locative platform."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.core import callback
|
|
||||||
from homeassistant.components.device_tracker import SOURCE_TYPE_GPS
|
from homeassistant.components.device_tracker import SOURCE_TYPE_GPS
|
||||||
from homeassistant.components.device_tracker.config_entry import TrackerEntity
|
from homeassistant.components.device_tracker.config_entry import TrackerEntity
|
||||||
|
from homeassistant.core import callback
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||||
|
|
||||||
from . import DOMAIN as LT_DOMAIN, TRACKER_UPDATE
|
from . import DOMAIN as LT_DOMAIN, TRACKER_UPDATE
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
"""The tests the for Locative device tracker platform."""
|
"""The tests the for Locative device tracker platform."""
|
||||||
from unittest.mock import patch, Mock
|
from unittest.mock import Mock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue