Sort imports according to PEP8 for hive (#29669)
This commit is contained in:
parent
415176e350
commit
51ece97e0d
6 changed files with 10 additions and 10 deletions
|
@ -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"}
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue