From a78fe25871f90bc988ac89e5a8a0653f5f45182f Mon Sep 17 00:00:00 2001 From: Bas Nijholt Date: Mon, 9 Dec 2019 11:43:46 +0100 Subject: [PATCH] Sort imports according to PEP8 for locative (#29698) --- homeassistant/components/locative/__init__.py | 10 +++++----- homeassistant/components/locative/config_flow.py | 2 +- homeassistant/components/locative/device_tracker.py | 2 +- tests/components/locative/test_init.py | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/homeassistant/components/locative/__init__.py b/homeassistant/components/locative/__init__.py index ed8bcb6e7e5..ea36aa9f7fb 100644 --- a/homeassistant/components/locative/__init__.py +++ b/homeassistant/components/locative/__init__.py @@ -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__) diff --git a/homeassistant/components/locative/config_flow.py b/homeassistant/components/locative/config_flow.py index b4fb43d5e4e..a1ac8263416 100644 --- a/homeassistant/components/locative/config_flow.py +++ b/homeassistant/components/locative/config_flow.py @@ -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, diff --git a/homeassistant/components/locative/device_tracker.py b/homeassistant/components/locative/device_tracker.py index c92847930a0..ef247954171 100644 --- a/homeassistant/components/locative/device_tracker.py +++ b/homeassistant/components/locative/device_tracker.py @@ -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 diff --git a/tests/components/locative/test_init.py b/tests/components/locative/test_init.py index 1abbf25d433..009a3d469c5 100644 --- a/tests/components/locative/test_init.py +++ b/tests/components/locative/test_init.py @@ -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