Sort imports according to PEP8 for counter (#29692)

pull/29761/head
Bas Nijholt 2019-12-09 11:47:35 +01:00 committed by Franck Nijhof
parent 2261bb60e0
commit 38657c0055
4 changed files with 4 additions and 4 deletions

View File

@ -3,8 +3,7 @@ import logging
import voluptuous as vol
from homeassistant.const import CONF_ICON, CONF_NAME, CONF_MAXIMUM, CONF_MINIMUM
from homeassistant.const import CONF_ICON, CONF_MAXIMUM, CONF_MINIMUM, CONF_NAME
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity_component import EntityComponent
from homeassistant.helpers.restore_state import RestoreEntity

View File

@ -12,9 +12,9 @@ from . import (
ATTR_MAXIMUM,
ATTR_MINIMUM,
ATTR_STEP,
VALUE,
DOMAIN,
SERVICE_CONFIGURE,
VALUE,
)
_LOGGER = logging.getLogger(__name__)

View File

@ -3,13 +3,13 @@
All containing methods are legacy helpers that should not be used by new
components. Instead call the service directly.
"""
from homeassistant.const import ATTR_ENTITY_ID
from homeassistant.components.counter import (
DOMAIN,
SERVICE_DECREMENT,
SERVICE_INCREMENT,
SERVICE_RESET,
)
from homeassistant.const import ATTR_ENTITY_ID
from homeassistant.core import callback
from homeassistant.loader import bind_hass

View File

@ -14,6 +14,7 @@ from homeassistant.components.counter import (
from homeassistant.const import ATTR_FRIENDLY_NAME, ATTR_ICON
from homeassistant.core import Context, CoreState, State
from homeassistant.setup import async_setup_component
from tests.common import mock_restore_cache
from tests.components.counter.common import (
async_decrement,