Sort imports according to PEP8 for counter (#29692)
parent
2261bb60e0
commit
38657c0055
|
@ -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
|
||||
|
|
|
@ -12,9 +12,9 @@ from . import (
|
|||
ATTR_MAXIMUM,
|
||||
ATTR_MINIMUM,
|
||||
ATTR_STEP,
|
||||
VALUE,
|
||||
DOMAIN,
|
||||
SERVICE_CONFIGURE,
|
||||
VALUE,
|
||||
)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue