mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Sort imports according to PEP8 for hive (#29669)
This commit is contained in:
parent
415176e350
commit
51ece97e0d
@ -1,7 +1,7 @@
|
|||||||
"""Support for the Hive binary sensors."""
|
"""Support for the Hive binary sensors."""
|
||||||
from homeassistant.components.binary_sensor import BinarySensorDevice
|
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"}
|
DEVICETYPE_DEVICE_CLASS = {"motionsensor": "motion", "contactsensor": "opening"}
|
||||||
|
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
"""Support for the Hive climate devices."""
|
"""Support for the Hive climate devices."""
|
||||||
from homeassistant.components.climate import ClimateDevice
|
from homeassistant.components.climate import ClimateDevice
|
||||||
from homeassistant.components.climate.const import (
|
from homeassistant.components.climate.const import (
|
||||||
|
CURRENT_HVAC_HEAT,
|
||||||
|
CURRENT_HVAC_IDLE,
|
||||||
|
CURRENT_HVAC_OFF,
|
||||||
HVAC_MODE_AUTO,
|
HVAC_MODE_AUTO,
|
||||||
HVAC_MODE_HEAT,
|
HVAC_MODE_HEAT,
|
||||||
HVAC_MODE_OFF,
|
HVAC_MODE_OFF,
|
||||||
@ -8,14 +11,10 @@ from homeassistant.components.climate.const import (
|
|||||||
PRESET_NONE,
|
PRESET_NONE,
|
||||||
SUPPORT_PRESET_MODE,
|
SUPPORT_PRESET_MODE,
|
||||||
SUPPORT_TARGET_TEMPERATURE,
|
SUPPORT_TARGET_TEMPERATURE,
|
||||||
CURRENT_HVAC_IDLE,
|
|
||||||
CURRENT_HVAC_OFF,
|
|
||||||
CURRENT_HVAC_HEAT,
|
|
||||||
)
|
)
|
||||||
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS
|
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS
|
||||||
|
|
||||||
|
from . import DATA_HIVE, DOMAIN, HiveEntity, refresh_system
|
||||||
from . import DOMAIN, DATA_HIVE, HiveEntity, refresh_system
|
|
||||||
|
|
||||||
HIVE_TO_HASS_STATE = {
|
HIVE_TO_HASS_STATE = {
|
||||||
"SCHEDULE": HVAC_MODE_AUTO,
|
"SCHEDULE": HVAC_MODE_AUTO,
|
||||||
|
@ -10,7 +10,7 @@ from homeassistant.components.light import (
|
|||||||
)
|
)
|
||||||
import homeassistant.util.color as color_util
|
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):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
from homeassistant.const import TEMP_CELSIUS
|
from homeassistant.const import TEMP_CELSIUS
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
from . import DOMAIN, DATA_HIVE, HiveEntity
|
from . import DATA_HIVE, DOMAIN, HiveEntity
|
||||||
|
|
||||||
FRIENDLY_NAMES = {
|
FRIENDLY_NAMES = {
|
||||||
"Hub_OnlineStatus": "Hive Hub Status",
|
"Hub_OnlineStatus": "Hive Hub Status",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
"""Support for the Hive switches."""
|
"""Support for the Hive switches."""
|
||||||
from homeassistant.components.switch import SwitchDevice
|
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):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
|
@ -7,7 +7,8 @@ from homeassistant.components.water_heater import (
|
|||||||
WaterHeaterDevice,
|
WaterHeaterDevice,
|
||||||
)
|
)
|
||||||
from homeassistant.const import TEMP_CELSIUS
|
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
|
SUPPORT_FLAGS_HEATER = SUPPORT_OPERATION_MODE
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user