Sort imports according to PEP8 for locative (#29698)

This commit is contained in:
Bas Nijholt 2019-12-09 11:43:46 +01:00 committed by Franck Nijhof
parent 642655b6d7
commit a78fe25871
4 changed files with 8 additions and 8 deletions

View file

@ -2,21 +2,21 @@
import logging
from typing import Dict
import voluptuous as vol
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.const import (
HTTP_UNPROCESSABLE_ENTITY,
ATTR_ID,
ATTR_LATITUDE,
ATTR_LONGITUDE,
STATE_NOT_HOME,
CONF_WEBHOOK_ID,
ATTR_ID,
HTTP_OK,
HTTP_UNPROCESSABLE_ENTITY,
STATE_NOT_HOME,
)
from homeassistant.helpers import config_entry_flow
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.dispatcher import async_dispatcher_send
_LOGGER = logging.getLogger(__name__)

View file

@ -1,7 +1,7 @@
"""Config flow for Locative."""
from homeassistant.helpers import config_entry_flow
from .const import DOMAIN
from .const import DOMAIN
config_entry_flow.register_webhook_flow(
DOMAIN,

View file

@ -1,9 +1,9 @@
"""Support for the Locative platform."""
import logging
from homeassistant.core import callback
from homeassistant.components.device_tracker import SOURCE_TYPE_GPS
from homeassistant.components.device_tracker.config_entry import TrackerEntity
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from . import DOMAIN as LT_DOMAIN, TRACKER_UPDATE

View file

@ -1,5 +1,5 @@
"""The tests the for Locative device tracker platform."""
from unittest.mock import patch, Mock
from unittest.mock import Mock, patch
import pytest