diff --git a/homeassistant/components/alexa/capabilities.py b/homeassistant/components/alexa/capabilities.py index 0182d2aa085..133ad4f2bda 100644 --- a/homeassistant/components/alexa/capabilities.py +++ b/homeassistant/components/alexa/capabilities.py @@ -12,16 +12,16 @@ from homeassistant.components import ( timer, vacuum, ) -from homeassistant.components.alarm_control_panel import ATTR_CODE_FORMAT, FORMAT_NUMBER +from homeassistant.components.alarm_control_panel import FORMAT_NUMBER from homeassistant.components.alarm_control_panel.const import ( SUPPORT_ALARM_ARM_AWAY, SUPPORT_ALARM_ARM_HOME, SUPPORT_ALARM_ARM_NIGHT, ) import homeassistant.components.climate.const as climate -from homeassistant.components.lock import STATE_LOCKING, STATE_UNLOCKING import homeassistant.components.media_player.const as media_player from homeassistant.const import ( + ATTR_CODE_FORMAT, ATTR_SUPPORTED_FEATURES, ATTR_TEMPERATURE, ATTR_UNIT_OF_MEASUREMENT, @@ -31,6 +31,7 @@ from homeassistant.const import ( STATE_ALARM_ARMED_NIGHT, STATE_IDLE, STATE_LOCKED, + STATE_LOCKING, STATE_OFF, STATE_ON, STATE_PAUSED, @@ -38,6 +39,7 @@ from homeassistant.const import ( STATE_UNAVAILABLE, STATE_UNKNOWN, STATE_UNLOCKED, + STATE_UNLOCKING, ) from homeassistant.core import State import homeassistant.util.color as color_util diff --git a/homeassistant/components/atag/water_heater.py b/homeassistant/components/atag/water_heater.py index d5abe6044b9..94d4bfd576a 100644 --- a/homeassistant/components/atag/water_heater.py +++ b/homeassistant/components/atag/water_heater.py @@ -1,12 +1,11 @@ """ATAG water heater component.""" from homeassistant.components.water_heater import ( - ATTR_TEMPERATURE, STATE_ECO, STATE_PERFORMANCE, WaterHeaterEntity, ) from homeassistant.config_entries import ConfigEntry -from homeassistant.const import STATE_OFF, TEMP_CELSIUS, Platform +from homeassistant.const import ATTR_TEMPERATURE, STATE_OFF, TEMP_CELSIUS, Platform from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback diff --git a/homeassistant/components/blebox/const.py b/homeassistant/components/blebox/const.py index 401aa0a8771..6d906dee778 100644 --- a/homeassistant/components/blebox/const.py +++ b/homeassistant/components/blebox/const.py @@ -1,15 +1,15 @@ """Constants for the BleBox devices integration.""" -from homeassistant.components.cover import ( +from homeassistant.components.cover import CoverDeviceClass +from homeassistant.components.sensor import SensorDeviceClass +from homeassistant.components.switch import SwitchDeviceClass +from homeassistant.const import ( STATE_CLOSED, STATE_CLOSING, STATE_OPEN, STATE_OPENING, - CoverDeviceClass, + TEMP_CELSIUS, ) -from homeassistant.components.sensor import SensorDeviceClass -from homeassistant.components.switch import SwitchDeviceClass -from homeassistant.const import TEMP_CELSIUS DOMAIN = "blebox" PRODUCT = "product" diff --git a/homeassistant/components/blebox/cover.py b/homeassistant/components/blebox/cover.py index 7ede27fb042..3056144b2e6 100644 --- a/homeassistant/components/blebox/cover.py +++ b/homeassistant/components/blebox/cover.py @@ -1,9 +1,6 @@ """BleBox cover entity.""" from homeassistant.components.cover import ( ATTR_POSITION, - STATE_CLOSED, - STATE_CLOSING, - STATE_OPENING, SUPPORT_CLOSE, SUPPORT_OPEN, SUPPORT_SET_POSITION, @@ -11,6 +8,7 @@ from homeassistant.components.cover import ( CoverEntity, ) from homeassistant.config_entries import ConfigEntry +from homeassistant.const import STATE_CLOSED, STATE_CLOSING, STATE_OPENING from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback diff --git a/homeassistant/components/broadlink/remote.py b/homeassistant/components/broadlink/remote.py index 6e9dabf80ad..e3db8c79ef5 100644 --- a/homeassistant/components/broadlink/remote.py +++ b/homeassistant/components/broadlink/remote.py @@ -17,7 +17,6 @@ import voluptuous as vol from homeassistant.components.remote import ( ATTR_ALTERNATIVE, - ATTR_COMMAND, ATTR_COMMAND_TYPE, ATTR_DELAY_SECS, ATTR_DEVICE, @@ -32,7 +31,7 @@ from homeassistant.components.remote import ( RemoteEntity, ) from homeassistant.config_entries import ConfigEntry -from homeassistant.const import STATE_OFF +from homeassistant.const import ATTR_COMMAND, STATE_OFF from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import config_validation as cv from homeassistant.helpers.entity_platform import AddEntitiesCallback diff --git a/homeassistant/components/color_extractor/__init__.py b/homeassistant/components/color_extractor/__init__.py index 19882937709..cbc5b0c8821 100644 --- a/homeassistant/components/color_extractor/__init__.py +++ b/homeassistant/components/color_extractor/__init__.py @@ -13,8 +13,8 @@ from homeassistant.components.light import ( ATTR_RGB_COLOR, DOMAIN as LIGHT_DOMAIN, LIGHT_TURN_ON_SCHEMA, - SERVICE_TURN_ON as LIGHT_SERVICE_TURN_ON, ) +from homeassistant.const import SERVICE_TURN_ON as LIGHT_SERVICE_TURN_ON from homeassistant.core import HomeAssistant, ServiceCall from homeassistant.helpers import aiohttp_client import homeassistant.helpers.config_validation as cv diff --git a/homeassistant/components/cover/intent.py b/homeassistant/components/cover/intent.py index 36402025bfa..1fa353151ba 100644 --- a/homeassistant/components/cover/intent.py +++ b/homeassistant/components/cover/intent.py @@ -1,8 +1,9 @@ """Intents for the cover integration.""" +from homeassistant.const import SERVICE_CLOSE_COVER, SERVICE_OPEN_COVER from homeassistant.core import HomeAssistant from homeassistant.helpers import intent -from . import DOMAIN, SERVICE_CLOSE_COVER, SERVICE_OPEN_COVER +from . import DOMAIN INTENT_OPEN_COVER = "HassOpenCover" INTENT_CLOSE_COVER = "HassCloseCover" diff --git a/homeassistant/components/econet/water_heater.py b/homeassistant/components/econet/water_heater.py index 5a256b6c9e6..741d2ee194a 100644 --- a/homeassistant/components/econet/water_heater.py +++ b/homeassistant/components/econet/water_heater.py @@ -5,13 +5,11 @@ from pyeconet.equipment import EquipmentType from pyeconet.equipment.water_heater import WaterHeaterOperationMode from homeassistant.components.water_heater import ( - ATTR_TEMPERATURE, STATE_ECO, STATE_ELECTRIC, STATE_GAS, STATE_HEAT_PUMP, STATE_HIGH_DEMAND, - STATE_OFF, STATE_PERFORMANCE, SUPPORT_AWAY_MODE, SUPPORT_OPERATION_MODE, @@ -19,6 +17,7 @@ from homeassistant.components.water_heater import ( WaterHeaterEntity, ) from homeassistant.config_entries import ConfigEntry +from homeassistant.const import ATTR_TEMPERATURE, STATE_OFF from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity_platform import AddEntitiesCallback diff --git a/homeassistant/components/emulated_hue/hue_api.py b/homeassistant/components/emulated_hue/hue_api.py index 3b5d1e7831e..6e387f2fe26 100644 --- a/homeassistant/components/emulated_hue/hue_api.py +++ b/homeassistant/components/emulated_hue/hue_api.py @@ -24,7 +24,6 @@ from homeassistant.components.climate.const import ( from homeassistant.components.cover import ( ATTR_CURRENT_POSITION, ATTR_POSITION, - SERVICE_SET_COVER_POSITION, SUPPORT_SET_POSITION, ) from homeassistant.components.fan import ( @@ -58,6 +57,7 @@ from homeassistant.const import ( ATTR_TEMPERATURE, SERVICE_CLOSE_COVER, SERVICE_OPEN_COVER, + SERVICE_SET_COVER_POSITION, SERVICE_TURN_OFF, SERVICE_TURN_ON, SERVICE_VOLUME_SET,