Sort imports according to PEP8 for hive (#29669)

This commit is contained in:
Bas Nijholt 2019-12-08 21:06:05 +01:00 committed by Franck Nijhof
parent 415176e350
commit 51ece97e0d
6 changed files with 10 additions and 10 deletions

View file

@ -1,7 +1,7 @@
"""Support for the Hive binary sensors."""
from homeassistant.components.binary_sensor import BinarySensorDevice
from . import DOMAIN, DATA_HIVE, HiveEntity
from . import DATA_HIVE, DOMAIN, HiveEntity
DEVICETYPE_DEVICE_CLASS = {"motionsensor": "motion", "contactsensor": "opening"}

View file

@ -1,6 +1,9 @@
"""Support for the Hive climate devices."""
from homeassistant.components.climate import ClimateDevice
from homeassistant.components.climate.const import (
CURRENT_HVAC_HEAT,
CURRENT_HVAC_IDLE,
CURRENT_HVAC_OFF,
HVAC_MODE_AUTO,
HVAC_MODE_HEAT,
HVAC_MODE_OFF,
@ -8,14 +11,10 @@ from homeassistant.components.climate.const import (
PRESET_NONE,
SUPPORT_PRESET_MODE,
SUPPORT_TARGET_TEMPERATURE,
CURRENT_HVAC_IDLE,
CURRENT_HVAC_OFF,
CURRENT_HVAC_HEAT,
)
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS
from . import DOMAIN, DATA_HIVE, HiveEntity, refresh_system
from . import DATA_HIVE, DOMAIN, HiveEntity, refresh_system
HIVE_TO_HASS_STATE = {
"SCHEDULE": HVAC_MODE_AUTO,

View file

@ -10,7 +10,7 @@ from homeassistant.components.light import (
)
import homeassistant.util.color as color_util
from . import DOMAIN, DATA_HIVE, HiveEntity, refresh_system
from . import DATA_HIVE, DOMAIN, HiveEntity, refresh_system
def setup_platform(hass, config, add_entities, discovery_info=None):

View file

@ -2,7 +2,7 @@
from homeassistant.const import TEMP_CELSIUS
from homeassistant.helpers.entity import Entity
from . import DOMAIN, DATA_HIVE, HiveEntity
from . import DATA_HIVE, DOMAIN, HiveEntity
FRIENDLY_NAMES = {
"Hub_OnlineStatus": "Hive Hub Status",

View file

@ -1,7 +1,7 @@
"""Support for the Hive switches."""
from homeassistant.components.switch import SwitchDevice
from . import DOMAIN, DATA_HIVE, HiveEntity, refresh_system
from . import DATA_HIVE, DOMAIN, HiveEntity, refresh_system
def setup_platform(hass, config, add_entities, discovery_info=None):

View file

@ -7,7 +7,8 @@ from homeassistant.components.water_heater import (
WaterHeaterDevice,
)
from homeassistant.const import TEMP_CELSIUS
from . import DOMAIN, DATA_HIVE, HiveEntity, refresh_system
from . import DATA_HIVE, DOMAIN, HiveEntity, refresh_system
SUPPORT_FLAGS_HEATER = SUPPORT_OPERATION_MODE