mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Sort imports according to PEP8 for geofency (#29695)
This commit is contained in:
parent
2511f5edb4
commit
2261bb60e0
@ -18,8 +18,8 @@ from homeassistant.helpers import config_entry_flow
|
|||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||||
from homeassistant.util import slugify
|
from homeassistant.util import slugify
|
||||||
from .const import DOMAIN
|
|
||||||
|
|
||||||
|
from .const import DOMAIN
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
"""Config flow for Geofency."""
|
"""Config flow for Geofency."""
|
||||||
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,13 +1,13 @@
|
|||||||
"""Support for the Geofency device tracker platform."""
|
"""Support for the Geofency device tracker platform."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE
|
|
||||||
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.const import ATTR_LATITUDE, ATTR_LONGITUDE
|
||||||
|
from homeassistant.core import callback
|
||||||
|
from homeassistant.helpers import device_registry
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||||
from homeassistant.helpers.restore_state import RestoreEntity
|
from homeassistant.helpers.restore_state import RestoreEntity
|
||||||
from homeassistant.helpers import device_registry
|
|
||||||
|
|
||||||
from . import DOMAIN as GF_DOMAIN, TRACKER_UPDATE
|
from . import DOMAIN as GF_DOMAIN, TRACKER_UPDATE
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"""The tests for the Geofency device tracker platform."""
|
"""The tests for the Geofency device tracker platform."""
|
||||||
# pylint: disable=redefined-outer-name
|
# pylint: disable=redefined-outer-name
|
||||||
from unittest.mock import patch, Mock
|
from unittest.mock import Mock, patch
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user