diff --git a/homeassistant/components/abode/__init__.py b/homeassistant/components/abode/__init__.py index 957b2510d51..591bae1a9cf 100644 --- a/homeassistant/components/abode/__init__.py +++ b/homeassistant/components/abode/__init__.py @@ -13,7 +13,7 @@ from homeassistant.helpers import config_validation as cv from homeassistant.helpers import discovery from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['abodepy==0.15.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/abode/alarm_control_panel.py b/homeassistant/components/abode/alarm_control_panel.py index 4c5aa15aa13..d7426e04166 100644 --- a/homeassistant/components/abode/alarm_control_panel.py +++ b/homeassistant/components/abode/alarm_control_panel.py @@ -8,7 +8,7 @@ from homeassistant.const import ( from . import ATTRIBUTION, DOMAIN as ABODE_DOMAIN, AbodeDevice - +DEPENDENCIES = ['abode'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/abode/binary_sensor.py b/homeassistant/components/abode/binary_sensor.py index bb3ada24503..874723420ed 100644 --- a/homeassistant/components/abode/binary_sensor.py +++ b/homeassistant/components/abode/binary_sensor.py @@ -7,7 +7,7 @@ from . import DOMAIN as ABODE_DOMAIN, AbodeAutomation, AbodeDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['abode'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/abode/camera.py b/homeassistant/components/abode/camera.py index 51d795f09ed..d37644eccc3 100644 --- a/homeassistant/components/abode/camera.py +++ b/homeassistant/components/abode/camera.py @@ -9,7 +9,7 @@ from homeassistant.util import Throttle from . import DOMAIN as ABODE_DOMAIN, AbodeDevice - +DEPENDENCIES = ['abode'] MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=90) diff --git a/homeassistant/components/abode/cover.py b/homeassistant/components/abode/cover.py index b979bd3b2eb..c40159164dc 100644 --- a/homeassistant/components/abode/cover.py +++ b/homeassistant/components/abode/cover.py @@ -5,7 +5,7 @@ from homeassistant.components.cover import CoverDevice from . import DOMAIN as ABODE_DOMAIN, AbodeDevice - +DEPENDENCIES = ['abode'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/abode/light.py b/homeassistant/components/abode/light.py index 728ec6c64bc..9e88acce41f 100644 --- a/homeassistant/components/abode/light.py +++ b/homeassistant/components/abode/light.py @@ -10,7 +10,7 @@ from homeassistant.util.color import ( from . import DOMAIN as ABODE_DOMAIN, AbodeDevice - +DEPENDENCIES = ['abode'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/abode/lock.py b/homeassistant/components/abode/lock.py index eec1c6f0091..0f568a4ace2 100644 --- a/homeassistant/components/abode/lock.py +++ b/homeassistant/components/abode/lock.py @@ -5,7 +5,7 @@ from homeassistant.components.lock import LockDevice from . import DOMAIN as ABODE_DOMAIN, AbodeDevice - +DEPENDENCIES = ['abode'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/abode/sensor.py b/homeassistant/components/abode/sensor.py index 40d83676333..ef6941c76d8 100644 --- a/homeassistant/components/abode/sensor.py +++ b/homeassistant/components/abode/sensor.py @@ -8,7 +8,7 @@ from . import DOMAIN as ABODE_DOMAIN, AbodeDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['abode'] # Sensor types: Name, icon SENSOR_TYPES = { diff --git a/homeassistant/components/abode/switch.py b/homeassistant/components/abode/switch.py index 9a0e4c5c123..3e3ce031855 100644 --- a/homeassistant/components/abode/switch.py +++ b/homeassistant/components/abode/switch.py @@ -7,7 +7,7 @@ from . import DOMAIN as ABODE_DOMAIN, AbodeAutomation, AbodeDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['abode'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/acer_projector/switch.py b/homeassistant/components/acer_projector/switch.py index a9e4ef46b6f..df6fb8816aa 100644 --- a/homeassistant/components/acer_projector/switch.py +++ b/homeassistant/components/acer_projector/switch.py @@ -9,7 +9,7 @@ from homeassistant.const import ( STATE_ON, STATE_OFF, STATE_UNKNOWN, CONF_NAME, CONF_FILENAME) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyserial==3.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ads/__init__.py b/homeassistant/components/ads/__init__.py index 4930e315ac5..92c6ecb3335 100644 --- a/homeassistant/components/ads/__init__.py +++ b/homeassistant/components/ads/__init__.py @@ -14,7 +14,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pyads==3.0.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ads/binary_sensor.py b/homeassistant/components/ads/binary_sensor.py index 0a50ba6b20f..baa44cb498f 100644 --- a/homeassistant/components/ads/binary_sensor.py +++ b/homeassistant/components/ads/binary_sensor.py @@ -13,7 +13,7 @@ from . import CONF_ADS_VAR, DATA_ADS, AdsEntity, STATE_KEY_STATE _LOGGER = logging.getLogger(__name__) DEFAULT_NAME = 'ADS binary sensor' - +DEPENDENCIES = ['ads'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_ADS_VAR): cv.string, diff --git a/homeassistant/components/ads/light.py b/homeassistant/components/ads/light.py index c808b54ca8a..49961565dce 100644 --- a/homeassistant/components/ads/light.py +++ b/homeassistant/components/ads/light.py @@ -12,7 +12,7 @@ from . import CONF_ADS_VAR, CONF_ADS_VAR_BRIGHTNESS, DATA_ADS, \ AdsEntity, STATE_KEY_BRIGHTNESS, STATE_KEY_STATE _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['ads'] DEFAULT_NAME = 'ADS Light' PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_ADS_VAR): cv.string, diff --git a/homeassistant/components/ads/sensor.py b/homeassistant/components/ads/sensor.py index 5a313e6ba97..e74b8753d4b 100644 --- a/homeassistant/components/ads/sensor.py +++ b/homeassistant/components/ads/sensor.py @@ -14,7 +14,7 @@ from . import CONF_ADS_FACTOR, CONF_ADS_TYPE, CONF_ADS_VAR, \ _LOGGER = logging.getLogger(__name__) DEFAULT_NAME = "ADS sensor" - +DEPENDENCIES = ['ads'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_ADS_VAR): cv.string, diff --git a/homeassistant/components/ads/switch.py b/homeassistant/components/ads/switch.py index 6b86f208a4c..0dfbeb811a0 100644 --- a/homeassistant/components/ads/switch.py +++ b/homeassistant/components/ads/switch.py @@ -11,7 +11,7 @@ from . import CONF_ADS_VAR, DATA_ADS, AdsEntity, STATE_KEY_STATE _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['ads'] DEFAULT_NAME = 'ADS Switch' diff --git a/homeassistant/components/aftership/sensor.py b/homeassistant/components/aftership/sensor.py index 9e367d316f7..18bc3cb3430 100644 --- a/homeassistant/components/aftership/sensor.py +++ b/homeassistant/components/aftership/sensor.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['pyaftership==0.1.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/airvisual/sensor.py b/homeassistant/components/airvisual/sensor.py index 563784e634e..7fad7bb35be 100644 --- a/homeassistant/components/airvisual/sensor.py +++ b/homeassistant/components/airvisual/sensor.py @@ -13,7 +13,7 @@ from homeassistant.helpers import aiohttp_client, config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['pyairvisual==3.0.1'] _LOGGER = getLogger(__name__) ATTR_CITY = 'city' diff --git a/homeassistant/components/aladdin_connect/cover.py b/homeassistant/components/aladdin_connect/cover.py index 8156565a59f..01146fecbb6 100644 --- a/homeassistant/components/aladdin_connect/cover.py +++ b/homeassistant/components/aladdin_connect/cover.py @@ -9,7 +9,7 @@ from homeassistant.const import (CONF_USERNAME, CONF_PASSWORD, STATE_CLOSED, STATE_OPENING, STATE_CLOSING, STATE_OPEN) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['aladdin_connect==0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/alarmdecoder/__init__.py b/homeassistant/components/alarmdecoder/__init__.py index 366a6f48b79..5b1296b39de 100644 --- a/homeassistant/components/alarmdecoder/__init__.py +++ b/homeassistant/components/alarmdecoder/__init__.py @@ -10,7 +10,7 @@ from homeassistant.helpers.discovery import load_platform from homeassistant.util import dt as dt_util from homeassistant.components.binary_sensor import DEVICE_CLASSES_SCHEMA - +REQUIREMENTS = ['alarmdecoder==1.13.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/alarmdecoder/alarm_control_panel.py b/homeassistant/components/alarmdecoder/alarm_control_panel.py index 3ab1f729813..d7eced933dd 100644 --- a/homeassistant/components/alarmdecoder/alarm_control_panel.py +++ b/homeassistant/components/alarmdecoder/alarm_control_panel.py @@ -13,7 +13,7 @@ from . import DATA_AD, SIGNAL_PANEL_MESSAGE _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['alarmdecoder'] SERVICE_ALARM_TOGGLE_CHIME = 'alarmdecoder_alarm_toggle_chime' ALARM_TOGGLE_CHIME_SCHEMA = vol.Schema({ diff --git a/homeassistant/components/alarmdecoder/binary_sensor.py b/homeassistant/components/alarmdecoder/binary_sensor.py index 727dd976cef..09e63b4d664 100644 --- a/homeassistant/components/alarmdecoder/binary_sensor.py +++ b/homeassistant/components/alarmdecoder/binary_sensor.py @@ -8,7 +8,7 @@ from . import ( CONF_ZONE_RFID, CONF_ZONE_TYPE, CONF_ZONES, SIGNAL_REL_MESSAGE, SIGNAL_RFX_MESSAGE, SIGNAL_ZONE_FAULT, SIGNAL_ZONE_RESTORE, ZONE_SCHEMA) - +DEPENDENCIES = ['alarmdecoder'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/alarmdecoder/sensor.py b/homeassistant/components/alarmdecoder/sensor.py index 5b92b15d955..88371dad17a 100644 --- a/homeassistant/components/alarmdecoder/sensor.py +++ b/homeassistant/components/alarmdecoder/sensor.py @@ -7,7 +7,7 @@ from . import SIGNAL_PANEL_MESSAGE _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['alarmdecoder'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/alarmdotcom/alarm_control_panel.py b/homeassistant/components/alarmdotcom/alarm_control_panel.py index 88f38ed0ebc..ea581aca747 100644 --- a/homeassistant/components/alarmdotcom/alarm_control_panel.py +++ b/homeassistant/components/alarmdotcom/alarm_control_panel.py @@ -12,7 +12,7 @@ from homeassistant.const import ( from homeassistant.helpers.aiohttp_client import async_get_clientsession import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyalarmdotcom==0.3.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/alexa/__init__.py b/homeassistant/components/alexa/__init__.py index 9422d08e062..062d698d512 100644 --- a/homeassistant/components/alexa/__init__.py +++ b/homeassistant/components/alexa/__init__.py @@ -17,7 +17,7 @@ _LOGGER = logging.getLogger(__name__) CONF_FLASH_BRIEFINGS = 'flash_briefings' CONF_SMART_HOME = 'smart_home' - +DEPENDENCIES = ['http'] ALEXA_ENTITY_SCHEMA = vol.Schema({ vol.Optional(smart_home.CONF_DESCRIPTION): cv.string, diff --git a/homeassistant/components/alpha_vantage/sensor.py b/homeassistant/components/alpha_vantage/sensor.py index f28cbb8f4f1..0eb57e5b27a 100644 --- a/homeassistant/components/alpha_vantage/sensor.py +++ b/homeassistant/components/alpha_vantage/sensor.py @@ -10,7 +10,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['alpha_vantage==2.1.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/amazon_polly/tts.py b/homeassistant/components/amazon_polly/tts.py index 606135ef0b6..d29ae32fb57 100644 --- a/homeassistant/components/amazon_polly/tts.py +++ b/homeassistant/components/amazon_polly/tts.py @@ -6,7 +6,7 @@ import voluptuous as vol from homeassistant.components.tts import PLATFORM_SCHEMA, Provider import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['boto3==1.9.16'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ambient_station/__init__.py b/homeassistant/components/ambient_station/__init__.py index 1287911f357..944d4e14e7d 100644 --- a/homeassistant/components/ambient_station/__init__.py +++ b/homeassistant/components/ambient_station/__init__.py @@ -20,7 +20,7 @@ from .const import ( ATTR_LAST_DATA, CONF_APP_KEY, DATA_CLIENT, DOMAIN, TOPIC_UPDATE, TYPE_BINARY_SENSOR, TYPE_SENSOR) - +REQUIREMENTS = ['aioambient==0.3.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ambient_station/binary_sensor.py b/homeassistant/components/ambient_station/binary_sensor.py index 4ea3abf47b2..04a38901683 100644 --- a/homeassistant/components/ambient_station/binary_sensor.py +++ b/homeassistant/components/ambient_station/binary_sensor.py @@ -12,7 +12,7 @@ from .const import ATTR_LAST_DATA, DATA_CLIENT, DOMAIN, TYPE_BINARY_SENSOR _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['ambient_station'] async def async_setup_platform( diff --git a/homeassistant/components/ambient_station/sensor.py b/homeassistant/components/ambient_station/sensor.py index 416088c02a6..b394dc558e6 100644 --- a/homeassistant/components/ambient_station/sensor.py +++ b/homeassistant/components/ambient_station/sensor.py @@ -8,7 +8,7 @@ from .const import ATTR_LAST_DATA, DATA_CLIENT, DOMAIN, TYPE_SENSOR _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['ambient_station'] async def async_setup_platform( diff --git a/homeassistant/components/amcrest/__init__.py b/homeassistant/components/amcrest/__init__.py index c69b404b011..a4c020efcdf 100644 --- a/homeassistant/components/amcrest/__init__.py +++ b/homeassistant/components/amcrest/__init__.py @@ -12,8 +12,8 @@ from homeassistant.const import ( from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv - - +REQUIREMENTS = ['amcrest==1.3.0'] +DEPENDENCIES = ['ffmpeg'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/amcrest/binary_sensor.py b/homeassistant/components/amcrest/binary_sensor.py index d339c4dac83..113918ed041 100644 --- a/homeassistant/components/amcrest/binary_sensor.py +++ b/homeassistant/components/amcrest/binary_sensor.py @@ -7,7 +7,7 @@ from homeassistant.components.binary_sensor import ( from homeassistant.const import CONF_NAME, CONF_BINARY_SENSORS from . import DATA_AMCREST, BINARY_SENSORS - +DEPENDENCIES = ['amcrest'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/amcrest/camera.py b/homeassistant/components/amcrest/camera.py index 98ef9fa15ac..f361c4e0183 100644 --- a/homeassistant/components/amcrest/camera.py +++ b/homeassistant/components/amcrest/camera.py @@ -12,7 +12,7 @@ from homeassistant.helpers.aiohttp_client import ( from . import DATA_AMCREST, STREAM_SOURCE_LIST, TIMEOUT - +DEPENDENCIES = ['amcrest', 'ffmpeg'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/amcrest/sensor.py b/homeassistant/components/amcrest/sensor.py index 2ca1c45767b..119520e6a03 100644 --- a/homeassistant/components/amcrest/sensor.py +++ b/homeassistant/components/amcrest/sensor.py @@ -7,7 +7,7 @@ from homeassistant.helpers.entity import Entity from . import DATA_AMCREST, SENSORS - +DEPENDENCIES = ['amcrest'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/amcrest/switch.py b/homeassistant/components/amcrest/switch.py index 5fe89b37ef6..0bbd290b3ac 100644 --- a/homeassistant/components/amcrest/switch.py +++ b/homeassistant/components/amcrest/switch.py @@ -8,7 +8,7 @@ from . import DATA_AMCREST, SWITCHES _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['amcrest'] async def async_setup_platform( diff --git a/homeassistant/components/ampio/air_quality.py b/homeassistant/components/ampio/air_quality.py index 9ba9652607c..f7aa98aec7c 100644 --- a/homeassistant/components/ampio/air_quality.py +++ b/homeassistant/components/ampio/air_quality.py @@ -11,7 +11,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle - +REQUIREMENTS = ['asmog==0.0.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/android_ip_webcam/__init__.py b/homeassistant/components/android_ip_webcam/__init__.py index d78b1a7f1ce..600efd55a16 100644 --- a/homeassistant/components/android_ip_webcam/__init__.py +++ b/homeassistant/components/android_ip_webcam/__init__.py @@ -21,7 +21,7 @@ from homeassistant.util.dt import utcnow from homeassistant.components.mjpeg.camera import ( CONF_MJPEG_URL, CONF_STILL_IMAGE_URL) - +REQUIREMENTS = ['pydroid-ipcam==0.8'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/android_ip_webcam/binary_sensor.py b/homeassistant/components/android_ip_webcam/binary_sensor.py index 8832b62be44..c058c44c503 100644 --- a/homeassistant/components/android_ip_webcam/binary_sensor.py +++ b/homeassistant/components/android_ip_webcam/binary_sensor.py @@ -3,7 +3,7 @@ from homeassistant.components.binary_sensor import BinarySensorDevice from . import CONF_HOST, CONF_NAME, DATA_IP_WEBCAM, KEY_MAP, AndroidIPCamEntity - +DEPENDENCIES = ['android_ip_webcam'] async def async_setup_platform( diff --git a/homeassistant/components/android_ip_webcam/sensor.py b/homeassistant/components/android_ip_webcam/sensor.py index 72475962cec..4d29493d64f 100644 --- a/homeassistant/components/android_ip_webcam/sensor.py +++ b/homeassistant/components/android_ip_webcam/sensor.py @@ -5,7 +5,7 @@ from . import ( CONF_HOST, CONF_NAME, CONF_SENSORS, DATA_IP_WEBCAM, ICON_MAP, KEY_MAP, AndroidIPCamEntity) - +DEPENDENCIES = ['android_ip_webcam'] async def async_setup_platform( diff --git a/homeassistant/components/android_ip_webcam/switch.py b/homeassistant/components/android_ip_webcam/switch.py index 3c0792688be..0304c5747f7 100644 --- a/homeassistant/components/android_ip_webcam/switch.py +++ b/homeassistant/components/android_ip_webcam/switch.py @@ -5,7 +5,7 @@ from . import ( CONF_HOST, CONF_NAME, CONF_SWITCHES, DATA_IP_WEBCAM, ICON_MAP, KEY_MAP, AndroidIPCamEntity) - +DEPENDENCIES = ['android_ip_webcam'] async def async_setup_platform( diff --git a/homeassistant/components/androidtv/media_player.py b/homeassistant/components/androidtv/media_player.py index e3f7538da1c..706ef6f8402 100644 --- a/homeassistant/components/androidtv/media_player.py +++ b/homeassistant/components/androidtv/media_player.py @@ -18,7 +18,7 @@ import homeassistant.helpers.config_validation as cv ANDROIDTV_DOMAIN = 'androidtv' - +REQUIREMENTS = ['androidtv==0.0.15'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/anel_pwrctrl/switch.py b/homeassistant/components/anel_pwrctrl/switch.py index 244b6394fa2..b9b3070b97e 100644 --- a/homeassistant/components/anel_pwrctrl/switch.py +++ b/homeassistant/components/anel_pwrctrl/switch.py @@ -10,7 +10,7 @@ from homeassistant.components.switch import (SwitchDevice, PLATFORM_SCHEMA) from homeassistant.const import (CONF_HOST, CONF_PASSWORD, CONF_USERNAME) from homeassistant.util import Throttle - +REQUIREMENTS = ['anel_pwrctrl-homeassistant==0.0.1.dev2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/anthemav/media_player.py b/homeassistant/components/anthemav/media_player.py index 03a51ac8517..c7ee579bc17 100644 --- a/homeassistant/components/anthemav/media_player.py +++ b/homeassistant/components/anthemav/media_player.py @@ -13,7 +13,7 @@ from homeassistant.const import ( STATE_ON) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['anthemav==1.1.10'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/apcupsd/__init__.py b/homeassistant/components/apcupsd/__init__.py index bc73918b334..aab6f6dda01 100644 --- a/homeassistant/components/apcupsd/__init__.py +++ b/homeassistant/components/apcupsd/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import (CONF_HOST, CONF_PORT) import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle - +REQUIREMENTS = ['apcaccess==0.0.13'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/apcupsd/binary_sensor.py b/homeassistant/components/apcupsd/binary_sensor.py index 08bcd9918ad..445dab9b074 100644 --- a/homeassistant/components/apcupsd/binary_sensor.py +++ b/homeassistant/components/apcupsd/binary_sensor.py @@ -8,7 +8,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.components import apcupsd DEFAULT_NAME = 'UPS Online Status' - +DEPENDENCIES = [apcupsd.DOMAIN] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string, diff --git a/homeassistant/components/apcupsd/sensor.py b/homeassistant/components/apcupsd/sensor.py index 594003414d1..09f9b324bdd 100644 --- a/homeassistant/components/apcupsd/sensor.py +++ b/homeassistant/components/apcupsd/sensor.py @@ -11,7 +11,7 @@ from homeassistant.helpers.entity import Entity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = [apcupsd.DOMAIN] SENSOR_PREFIX = 'UPS ' SENSOR_TYPES = { diff --git a/homeassistant/components/api/__init__.py b/homeassistant/components/api/__init__.py index 61a5cd70c45..beba17ee2ea 100644 --- a/homeassistant/components/api/__init__.py +++ b/homeassistant/components/api/__init__.py @@ -33,7 +33,7 @@ ATTR_REQUIRES_API_PASSWORD = 'requires_api_password' ATTR_VERSION = 'version' DOMAIN = 'api' - +DEPENDENCIES = ['http'] STREAM_PING_PAYLOAD = 'ping' STREAM_PING_INTERVAL = 50 # seconds diff --git a/homeassistant/components/apns/notify.py b/homeassistant/components/apns/notify.py index 8e4d7d1f8b1..d7f6559fe7e 100644 --- a/homeassistant/components/apns/notify.py +++ b/homeassistant/components/apns/notify.py @@ -13,7 +13,7 @@ from homeassistant.helpers.event import track_state_change from homeassistant.components.notify import ( ATTR_DATA, ATTR_TARGET, DOMAIN, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['apns2==0.3.0'] APNS_DEVICES = 'apns.yaml' CONF_CERTFILE = 'cert_file' diff --git a/homeassistant/components/apple_tv/__init__.py b/homeassistant/components/apple_tv/__init__.py index 12b9203729c..b265dc533eb 100644 --- a/homeassistant/components/apple_tv/__init__.py +++ b/homeassistant/components/apple_tv/__init__.py @@ -11,7 +11,7 @@ from homeassistant.helpers import discovery from homeassistant.helpers.aiohttp_client import async_get_clientsession import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyatv==0.3.12'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/apple_tv/media_player.py b/homeassistant/components/apple_tv/media_player.py index b285ca86c61..e00ce6ed13b 100644 --- a/homeassistant/components/apple_tv/media_player.py +++ b/homeassistant/components/apple_tv/media_player.py @@ -14,7 +14,7 @@ import homeassistant.util.dt as dt_util from . import ATTR_ATV, ATTR_POWER, DATA_APPLE_TV, DATA_ENTITIES - +DEPENDENCIES = ['apple_tv'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/apple_tv/remote.py b/homeassistant/components/apple_tv/remote.py index 439d7def371..25b500ac09d 100644 --- a/homeassistant/components/apple_tv/remote.py +++ b/homeassistant/components/apple_tv/remote.py @@ -4,7 +4,7 @@ from homeassistant.const import CONF_HOST, CONF_NAME from . import ATTR_ATV, ATTR_POWER, DATA_APPLE_TV - +DEPENDENCIES = ['apple_tv'] async def async_setup_platform( diff --git a/homeassistant/components/aqualogic/__init__.py b/homeassistant/components/aqualogic/__init__.py index 91f985c4a0e..a4f83b573f7 100644 --- a/homeassistant/components/aqualogic/__init__.py +++ b/homeassistant/components/aqualogic/__init__.py @@ -11,7 +11,7 @@ from homeassistant.const import (CONF_HOST, CONF_PORT, EVENT_HOMEASSISTANT_STOP) from homeassistant.helpers import config_validation as cv - +REQUIREMENTS = ["aqualogic==1.0"] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/aqualogic/sensor.py b/homeassistant/components/aqualogic/sensor.py index 422db6bb02d..dc06a2127e9 100644 --- a/homeassistant/components/aqualogic/sensor.py +++ b/homeassistant/components/aqualogic/sensor.py @@ -14,7 +14,7 @@ from . import DOMAIN, UPDATE_TOPIC _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['aqualogic'] TEMP_UNITS = [TEMP_CELSIUS, TEMP_FAHRENHEIT] PERCENT_UNITS = ['%', '%'] diff --git a/homeassistant/components/aqualogic/switch.py b/homeassistant/components/aqualogic/switch.py index 1fffadab3b8..21e573f944b 100644 --- a/homeassistant/components/aqualogic/switch.py +++ b/homeassistant/components/aqualogic/switch.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv from . import DOMAIN, UPDATE_TOPIC - +DEPENDENCIES = ['aqualogic'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/aquostv/media_player.py b/homeassistant/components/aquostv/media_player.py index c90f798180e..0ffe48d21ec 100644 --- a/homeassistant/components/aquostv/media_player.py +++ b/homeassistant/components/aquostv/media_player.py @@ -15,7 +15,7 @@ from homeassistant.const import ( CONF_USERNAME, STATE_OFF, STATE_ON) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['sharp_aquos_rc==0.3.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/arduino/__init__.py b/homeassistant/components/arduino/__init__.py index dc59cb652e6..351122e74f0 100644 --- a/homeassistant/components/arduino/__init__.py +++ b/homeassistant/components/arduino/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import ( from homeassistant.const import CONF_PORT import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['PyMata==2.14'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/arduino/sensor.py b/homeassistant/components/arduino/sensor.py index 9013edfa641..ff758ea5847 100644 --- a/homeassistant/components/arduino/sensor.py +++ b/homeassistant/components/arduino/sensor.py @@ -14,7 +14,7 @@ _LOGGER = logging.getLogger(__name__) CONF_PINS = 'pins' CONF_TYPE = 'analog' - +DEPENDENCIES = ['arduino'] PIN_SCHEMA = vol.Schema({ vol.Required(CONF_NAME): cv.string, diff --git a/homeassistant/components/arduino/switch.py b/homeassistant/components/arduino/switch.py index eae61f0ee91..947c5188766 100644 --- a/homeassistant/components/arduino/switch.py +++ b/homeassistant/components/arduino/switch.py @@ -8,7 +8,7 @@ from homeassistant.components.switch import (SwitchDevice, PLATFORM_SCHEMA) from homeassistant.const import CONF_NAME import homeassistant.helpers.config_validation as cv - +DEPENDENCIES = ['arduino'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/arlo/__init__.py b/homeassistant/components/arlo/__init__.py index c370600e9ca..cbb720778e5 100644 --- a/homeassistant/components/arlo/__init__.py +++ b/homeassistant/components/arlo/__init__.py @@ -11,7 +11,7 @@ from homeassistant.const import ( from homeassistant.helpers.event import track_time_interval from homeassistant.helpers.dispatcher import dispatcher_send - +REQUIREMENTS = ['pyarlo==0.2.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/arlo/alarm_control_panel.py b/homeassistant/components/arlo/alarm_control_panel.py index aeebd46a9f1..3557ed125c6 100644 --- a/homeassistant/components/arlo/alarm_control_panel.py +++ b/homeassistant/components/arlo/alarm_control_panel.py @@ -22,7 +22,7 @@ CONF_HOME_MODE_NAME = 'home_mode_name' CONF_AWAY_MODE_NAME = 'away_mode_name' CONF_NIGHT_MODE_NAME = 'night_mode_name' - +DEPENDENCIES = ['arlo'] DISARMED = 'disarmed' diff --git a/homeassistant/components/arlo/camera.py b/homeassistant/components/arlo/camera.py index 918c2e0a71d..d4b00f00625 100644 --- a/homeassistant/components/arlo/camera.py +++ b/homeassistant/components/arlo/camera.py @@ -13,7 +13,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect from . import DATA_ARLO, DEFAULT_BRAND, SIGNAL_UPDATE_ARLO - +DEPENDENCIES = ['arlo', 'ffmpeg'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/arlo/sensor.py b/homeassistant/components/arlo/sensor.py index 5b6f33eb89d..e08669eb80b 100644 --- a/homeassistant/components/arlo/sensor.py +++ b/homeassistant/components/arlo/sensor.py @@ -17,7 +17,7 @@ from . import ATTRIBUTION, DATA_ARLO, DEFAULT_BRAND, SIGNAL_UPDATE_ARLO _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['arlo'] # sensor_type [ description, unit, icon ] SENSOR_TYPES = { diff --git a/homeassistant/components/aruba/device_tracker.py b/homeassistant/components/aruba/device_tracker.py index c4b03f4de8e..ed1fee25a6c 100644 --- a/homeassistant/components/aruba/device_tracker.py +++ b/homeassistant/components/aruba/device_tracker.py @@ -11,7 +11,7 @@ from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pexpect==4.6.0'] _DEVICES_REGEX = re.compile( r'(?P([^\s]+)?)\s+' + diff --git a/homeassistant/components/arwn/sensor.py b/homeassistant/components/arwn/sensor.py index 602d106ff4d..aef43c4b401 100644 --- a/homeassistant/components/arwn/sensor.py +++ b/homeassistant/components/arwn/sensor.py @@ -10,7 +10,7 @@ from homeassistant.util import slugify _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['mqtt'] DOMAIN = 'arwn' DATA_ARWN = 'arwn' diff --git a/homeassistant/components/asterisk_cdr/mailbox.py b/homeassistant/components/asterisk_cdr/mailbox.py index d2a04c3d9a3..db5d4e8d6ee 100644 --- a/homeassistant/components/asterisk_cdr/mailbox.py +++ b/homeassistant/components/asterisk_cdr/mailbox.py @@ -11,7 +11,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['asterisk_mbox'] MAILBOX_NAME = 'asterisk_cdr' diff --git a/homeassistant/components/asterisk_mbox/__init__.py b/homeassistant/components/asterisk_mbox/__init__.py index 9d0f79ef278..d8d3b194cd7 100644 --- a/homeassistant/components/asterisk_mbox/__init__.py +++ b/homeassistant/components/asterisk_mbox/__init__.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.dispatcher import ( async_dispatcher_send, dispatcher_connect) - +REQUIREMENTS = ['asterisk_mbox==0.5.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/asterisk_mbox/mailbox.py b/homeassistant/components/asterisk_mbox/mailbox.py index f5e82f55f89..a3e7c3f4d61 100644 --- a/homeassistant/components/asterisk_mbox/mailbox.py +++ b/homeassistant/components/asterisk_mbox/mailbox.py @@ -10,7 +10,7 @@ from . import DOMAIN as ASTERISK_DOMAIN _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['asterisk_mbox'] SIGNAL_MESSAGE_REQUEST = 'asterisk_mbox.message_request' SIGNAL_MESSAGE_UPDATE = 'asterisk_mbox.message_updated' diff --git a/homeassistant/components/asuswrt/__init__.py b/homeassistant/components/asuswrt/__init__.py index a862383e945..9b004b5bc04 100644 --- a/homeassistant/components/asuswrt/__init__.py +++ b/homeassistant/components/asuswrt/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import ( from homeassistant.helpers import config_validation as cv from homeassistant.helpers.discovery import async_load_platform - +REQUIREMENTS = ['aioasuswrt==1.1.21'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/asuswrt/device_tracker.py b/homeassistant/components/asuswrt/device_tracker.py index 837c5a02b06..d115e640ffa 100644 --- a/homeassistant/components/asuswrt/device_tracker.py +++ b/homeassistant/components/asuswrt/device_tracker.py @@ -5,7 +5,7 @@ from homeassistant.components.device_tracker import DeviceScanner from . import DATA_ASUSWRT - +DEPENDENCIES = ['asuswrt'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/asuswrt/sensor.py b/homeassistant/components/asuswrt/sensor.py index 650b1eb27ca..ac80a447e28 100644 --- a/homeassistant/components/asuswrt/sensor.py +++ b/homeassistant/components/asuswrt/sensor.py @@ -5,7 +5,7 @@ from homeassistant.helpers.entity import Entity from . import DATA_ASUSWRT - +DEPENDENCIES = ['asuswrt'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/august/__init__.py b/homeassistant/components/august/__init__.py index cbdf6be583d..8e749dca46e 100644 --- a/homeassistant/components/august/__init__.py +++ b/homeassistant/components/august/__init__.py @@ -15,7 +15,7 @@ _LOGGER = logging.getLogger(__name__) _CONFIGURING = {} - +REQUIREMENTS = ['py-august==0.7.0'] DEFAULT_TIMEOUT = 10 ACTIVITY_FETCH_LIMIT = 10 diff --git a/homeassistant/components/august/binary_sensor.py b/homeassistant/components/august/binary_sensor.py index c223d8ecaac..3a69d41177d 100644 --- a/homeassistant/components/august/binary_sensor.py +++ b/homeassistant/components/august/binary_sensor.py @@ -8,7 +8,7 @@ from . import DATA_AUGUST _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['august'] SCAN_INTERVAL = timedelta(seconds=5) diff --git a/homeassistant/components/august/camera.py b/homeassistant/components/august/camera.py index 251dbc95604..53a9d78bc60 100644 --- a/homeassistant/components/august/camera.py +++ b/homeassistant/components/august/camera.py @@ -7,7 +7,7 @@ from homeassistant.components.camera import Camera from . import DATA_AUGUST, DEFAULT_TIMEOUT - +DEPENDENCIES = ['august'] SCAN_INTERVAL = timedelta(seconds=5) diff --git a/homeassistant/components/august/lock.py b/homeassistant/components/august/lock.py index 243cb49706b..e112eaa2592 100644 --- a/homeassistant/components/august/lock.py +++ b/homeassistant/components/august/lock.py @@ -9,7 +9,7 @@ from . import DATA_AUGUST _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['august'] SCAN_INTERVAL = timedelta(seconds=5) diff --git a/homeassistant/components/auth/__init__.py b/homeassistant/components/auth/__init__.py index 3d5a9b92564..d0157158aca 100644 --- a/homeassistant/components/auth/__init__.py +++ b/homeassistant/components/auth/__init__.py @@ -138,7 +138,7 @@ from . import login_flow from . import mfa_setup_flow DOMAIN = 'auth' - +DEPENDENCIES = ['http'] WS_TYPE_CURRENT_USER = 'auth/current_user' SCHEMA_WS_CURRENT_USER = websocket_api.BASE_COMMAND_MESSAGE_SCHEMA.extend({ diff --git a/homeassistant/components/automatic/device_tracker.py b/homeassistant/components/automatic/device_tracker.py index afb4a5e74fc..8abd81e63be 100644 --- a/homeassistant/components/automatic/device_tracker.py +++ b/homeassistant/components/automatic/device_tracker.py @@ -18,7 +18,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession import homeassistant.helpers.config_validation as cv from homeassistant.helpers.event import async_track_time_interval - +REQUIREMENTS = ['aioautomatic==0.6.5'] _LOGGER = logging.getLogger(__name__) @@ -34,7 +34,7 @@ DATA_CONFIGURING = 'automatic_configurator_clients' DATA_REFRESH_TOKEN = 'refresh_token' DEFAULT_SCOPE = ['location', 'trip', 'vehicle:events', 'vehicle:profile'] DEFAULT_TIMEOUT = 5 - +DEPENDENCIES = ['http'] EVENT_AUTOMATIC_UPDATE = 'automatic_update' diff --git a/homeassistant/components/automation/__init__.py b/homeassistant/components/automation/__init__.py index 26aa65f2128..b1470582d59 100644 --- a/homeassistant/components/automation/__init__.py +++ b/homeassistant/components/automation/__init__.py @@ -21,7 +21,7 @@ from homeassistant.loader import bind_hass from homeassistant.util.dt import utcnow DOMAIN = 'automation' - +DEPENDENCIES = ['group'] ENTITY_ID_FORMAT = DOMAIN + '.{}' GROUP_NAME_ALL_AUTOMATIONS = 'all automations' diff --git a/homeassistant/components/automation/litejet.py b/homeassistant/components/automation/litejet.py index d5788db2d1a..20c689d74cf 100644 --- a/homeassistant/components/automation/litejet.py +++ b/homeassistant/components/automation/litejet.py @@ -9,7 +9,7 @@ import homeassistant.helpers.config_validation as cv import homeassistant.util.dt as dt_util from homeassistant.helpers.event import track_point_in_utc_time - +DEPENDENCIES = ['litejet'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/automation/mqtt.py b/homeassistant/components/automation/mqtt.py index c5e8ce33e3c..ff89cd47024 100644 --- a/homeassistant/components/automation/mqtt.py +++ b/homeassistant/components/automation/mqtt.py @@ -8,7 +8,7 @@ from homeassistant.components import mqtt from homeassistant.const import (CONF_PLATFORM, CONF_PAYLOAD) import homeassistant.helpers.config_validation as cv - +DEPENDENCIES = ['mqtt'] CONF_ENCODING = 'encoding' CONF_TOPIC = 'topic' diff --git a/homeassistant/components/avion/light.py b/homeassistant/components/avion/light.py index 09532587443..65172025b56 100644 --- a/homeassistant/components/avion/light.py +++ b/homeassistant/components/avion/light.py @@ -12,7 +12,7 @@ from homeassistant.const import ( CONF_USERNAME) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['avion==0.10'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/awair/sensor.py b/homeassistant/components/awair/sensor.py index 627e65006af..7fdcc673549 100644 --- a/homeassistant/components/awair/sensor.py +++ b/homeassistant/components/awair/sensor.py @@ -15,7 +15,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle, dt - +REQUIREMENTS = ['python_awair==0.0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/aws/__init__.py b/homeassistant/components/aws/__init__.py index 0f8f82f3d27..a15e56e9de8 100644 --- a/homeassistant/components/aws/__init__.py +++ b/homeassistant/components/aws/__init__.py @@ -26,7 +26,7 @@ from .const import ( DOMAIN, ) - +REQUIREMENTS = ["aiobotocore==0.10.2"] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/aws/notify.py b/homeassistant/components/aws/notify.py index 8a02cd2375a..48b80b64ce2 100644 --- a/homeassistant/components/aws/notify.py +++ b/homeassistant/components/aws/notify.py @@ -21,7 +21,7 @@ from .const import ( DATA_SESSIONS, ) - +DEPENDENCIES = ["aws"] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/axis/__init__.py b/homeassistant/components/axis/__init__.py index c65a2b66fce..e9ed37477a5 100644 --- a/homeassistant/components/axis/__init__.py +++ b/homeassistant/components/axis/__init__.py @@ -11,7 +11,7 @@ from .config_flow import DEVICE_SCHEMA from .const import CONF_CAMERA, CONF_EVENTS, DEFAULT_TRIGGER_TIME, DOMAIN from .device import AxisNetworkDevice, get_device - +REQUIREMENTS = ['axis==19'] CONFIG_SCHEMA = vol.Schema({ DOMAIN: cv.schema_with_slug_keys(DEVICE_SCHEMA), diff --git a/homeassistant/components/axis/binary_sensor.py b/homeassistant/components/axis/binary_sensor.py index e734abbf5be..30e0e759a2c 100644 --- a/homeassistant/components/axis/binary_sensor.py +++ b/homeassistant/components/axis/binary_sensor.py @@ -11,7 +11,7 @@ from homeassistant.util.dt import utcnow from .const import DOMAIN as AXIS_DOMAIN, LOGGER - +DEPENDENCIES = [AXIS_DOMAIN] async def async_setup_entry(hass, config_entry, async_add_entities): diff --git a/homeassistant/components/axis/camera.py b/homeassistant/components/axis/camera.py index 7873cff301a..62b694a99bb 100644 --- a/homeassistant/components/axis/camera.py +++ b/homeassistant/components/axis/camera.py @@ -11,7 +11,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect from .const import DOMAIN as AXIS_DOMAIN - +DEPENDENCIES = [AXIS_DOMAIN] AXIS_IMAGE = 'http://{}:{}/axis-cgi/jpg/image.cgi' AXIS_VIDEO = 'http://{}:{}/axis-cgi/mjpg/video.cgi' diff --git a/homeassistant/components/baidu/tts.py b/homeassistant/components/baidu/tts.py index 7cc3080fac0..fbe27591ef5 100644 --- a/homeassistant/components/baidu/tts.py +++ b/homeassistant/components/baidu/tts.py @@ -7,7 +7,7 @@ from homeassistant.components.tts import CONF_LANG, PLATFORM_SCHEMA, Provider from homeassistant.const import CONF_API_KEY import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ["baidu-aip==1.6.6"] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/bbb_gpio/__init__.py b/homeassistant/components/bbb_gpio/__init__.py index ed6cbba54f1..7749af8f335 100644 --- a/homeassistant/components/bbb_gpio/__init__.py +++ b/homeassistant/components/bbb_gpio/__init__.py @@ -4,7 +4,7 @@ import logging from homeassistant.const import ( EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP) - +REQUIREMENTS = ['Adafruit_BBIO==1.0.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/bbb_gpio/binary_sensor.py b/homeassistant/components/bbb_gpio/binary_sensor.py index af131306c40..1ee371dcc2a 100644 --- a/homeassistant/components/bbb_gpio/binary_sensor.py +++ b/homeassistant/components/bbb_gpio/binary_sensor.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['bbb_gpio'] CONF_PINS = 'pins' CONF_BOUNCETIME = 'bouncetime' diff --git a/homeassistant/components/bbb_gpio/switch.py b/homeassistant/components/bbb_gpio/switch.py index 3bd6908b556..3ad46fd61ae 100644 --- a/homeassistant/components/bbb_gpio/switch.py +++ b/homeassistant/components/bbb_gpio/switch.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['bbb_gpio'] CONF_PINS = 'pins' CONF_INITIAL = 'initial' diff --git a/homeassistant/components/bbox/device_tracker.py b/homeassistant/components/bbox/device_tracker.py index d10e113a402..badbcdc8a0b 100644 --- a/homeassistant/components/bbox/device_tracker.py +++ b/homeassistant/components/bbox/device_tracker.py @@ -12,7 +12,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['pybbox==0.0.5-alpha'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/bbox/sensor.py b/homeassistant/components/bbox/sensor.py index b1880ac3a94..5b3c31d1ddf 100644 --- a/homeassistant/components/bbox/sensor.py +++ b/homeassistant/components/bbox/sensor.py @@ -12,7 +12,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['pybbox==0.0.5-alpha'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/bitcoin/sensor.py b/homeassistant/components/bitcoin/sensor.py index d8e95582325..3bc14637a87 100644 --- a/homeassistant/components/bitcoin/sensor.py +++ b/homeassistant/components/bitcoin/sensor.py @@ -10,7 +10,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['blockchain==1.4.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/blackbird/media_player.py b/homeassistant/components/blackbird/media_player.py index c1f2d2660ed..c66bc412160 100644 --- a/homeassistant/components/blackbird/media_player.py +++ b/homeassistant/components/blackbird/media_player.py @@ -14,7 +14,7 @@ from homeassistant.const import ( STATE_ON) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyblackbird==0.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/blink/__init__.py b/homeassistant/components/blink/__init__.py index 9d779883fb0..488209e3689 100644 --- a/homeassistant/components/blink/__init__.py +++ b/homeassistant/components/blink/__init__.py @@ -10,7 +10,7 @@ from homeassistant.const import ( CONF_BINARY_SENSORS, CONF_SENSORS, CONF_FILENAME, CONF_MONITORED_CONDITIONS, TEMP_FAHRENHEIT) - +REQUIREMENTS = ['blinkpy==0.13.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/blink/alarm_control_panel.py b/homeassistant/components/blink/alarm_control_panel.py index e5b49772dd5..75e645dff5f 100644 --- a/homeassistant/components/blink/alarm_control_panel.py +++ b/homeassistant/components/blink/alarm_control_panel.py @@ -9,7 +9,7 @@ from . import BLINK_DATA, DEFAULT_ATTRIBUTION _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['blink'] ICON = 'mdi:security' diff --git a/homeassistant/components/blink/binary_sensor.py b/homeassistant/components/blink/binary_sensor.py index c058bb40ed3..466b73caf5f 100644 --- a/homeassistant/components/blink/binary_sensor.py +++ b/homeassistant/components/blink/binary_sensor.py @@ -4,7 +4,7 @@ from homeassistant.const import CONF_MONITORED_CONDITIONS from . import BINARY_SENSORS, BLINK_DATA - +DEPENDENCIES = ['blink'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/blink/camera.py b/homeassistant/components/blink/camera.py index 6fe3e81a319..1da3080e3ff 100644 --- a/homeassistant/components/blink/camera.py +++ b/homeassistant/components/blink/camera.py @@ -7,7 +7,7 @@ from . import BLINK_DATA, DEFAULT_BRAND _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['blink'] ATTR_VIDEO_CLIP = 'video' ATTR_IMAGE = 'image' diff --git a/homeassistant/components/blink/sensor.py b/homeassistant/components/blink/sensor.py index bd954111237..0e97db9d7d4 100644 --- a/homeassistant/components/blink/sensor.py +++ b/homeassistant/components/blink/sensor.py @@ -8,7 +8,7 @@ from . import BLINK_DATA, SENSORS _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['blink'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/blinksticklight/light.py b/homeassistant/components/blinksticklight/light.py index 067ef122419..0d4c7b736f3 100644 --- a/homeassistant/components/blinksticklight/light.py +++ b/homeassistant/components/blinksticklight/light.py @@ -10,7 +10,7 @@ from homeassistant.const import CONF_NAME import homeassistant.helpers.config_validation as cv import homeassistant.util.color as color_util - +REQUIREMENTS = ['blinkstick==1.1.8'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/blinkt/light.py b/homeassistant/components/blinkt/light.py index 86b59971419..57d19172614 100644 --- a/homeassistant/components/blinkt/light.py +++ b/homeassistant/components/blinkt/light.py @@ -11,7 +11,7 @@ from homeassistant.components.light import ( from homeassistant.const import CONF_NAME import homeassistant.util.color as color_util - +REQUIREMENTS = ['blinkt==0.1.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/blockchain/sensor.py b/homeassistant/components/blockchain/sensor.py index 3069265060a..def1dc3309f 100644 --- a/homeassistant/components/blockchain/sensor.py +++ b/homeassistant/components/blockchain/sensor.py @@ -9,7 +9,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import (CONF_NAME, ATTR_ATTRIBUTION) from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['python-blockchain-api==0.0.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/bloomsky/binary_sensor.py b/homeassistant/components/bloomsky/binary_sensor.py index aa64179c6da..c8763524de7 100644 --- a/homeassistant/components/bloomsky/binary_sensor.py +++ b/homeassistant/components/bloomsky/binary_sensor.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['bloomsky'] SENSOR_TYPES = { 'Rain': 'moisture', diff --git a/homeassistant/components/bloomsky/camera.py b/homeassistant/components/bloomsky/camera.py index 350d9ed91f9..5cb2e1adfe1 100644 --- a/homeassistant/components/bloomsky/camera.py +++ b/homeassistant/components/bloomsky/camera.py @@ -5,7 +5,7 @@ import requests from homeassistant.components.camera import Camera - +DEPENDENCIES = ['bloomsky'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/bloomsky/sensor.py b/homeassistant/components/bloomsky/sensor.py index 51645bb82ef..7e6847f0e7e 100644 --- a/homeassistant/components/bloomsky/sensor.py +++ b/homeassistant/components/bloomsky/sensor.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['bloomsky'] # These are the available sensors SENSOR_TYPES = ['Temperature', diff --git a/homeassistant/components/bluesound/media_player.py b/homeassistant/components/bluesound/media_player.py index 16e4ea5775d..c4cd3572e75 100644 --- a/homeassistant/components/bluesound/media_player.py +++ b/homeassistant/components/bluesound/media_player.py @@ -29,7 +29,7 @@ from homeassistant.helpers.event import async_track_time_interval from homeassistant.util import Throttle import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['xmltodict==0.11.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/bluetooth_le_tracker/device_tracker.py b/homeassistant/components/bluetooth_le_tracker/device_tracker.py index c8627ed91f3..dfb5fa073b9 100644 --- a/homeassistant/components/bluetooth_le_tracker/device_tracker.py +++ b/homeassistant/components/bluetooth_le_tracker/device_tracker.py @@ -10,7 +10,7 @@ import homeassistant.util.dt as dt_util _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pygatt[GATTTOOL]==3.2.0'] BLE_PREFIX = 'BLE_' MIN_SEEN_NEW = 5 diff --git a/homeassistant/components/bluetooth_tracker/device_tracker.py b/homeassistant/components/bluetooth_tracker/device_tracker.py index 5a92434b45a..3a4aa888001 100644 --- a/homeassistant/components/bluetooth_tracker/device_tracker.py +++ b/homeassistant/components/bluetooth_tracker/device_tracker.py @@ -13,7 +13,7 @@ import homeassistant.util.dt as dt_util _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pybluez==0.22', 'bt_proximity==0.1.2'] BT_PREFIX = 'BT_' diff --git a/homeassistant/components/bmw_connected_drive/__init__.py b/homeassistant/components/bmw_connected_drive/__init__.py index f5c771b1e25..e1ac30120d2 100644 --- a/homeassistant/components/bmw_connected_drive/__init__.py +++ b/homeassistant/components/bmw_connected_drive/__init__.py @@ -9,7 +9,7 @@ from homeassistant.helpers import discovery from homeassistant.helpers.event import track_utc_time_change import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['bimmer_connected==0.5.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/bmw_connected_drive/binary_sensor.py b/homeassistant/components/bmw_connected_drive/binary_sensor.py index 4c65ef9ac89..deab157292d 100644 --- a/homeassistant/components/bmw_connected_drive/binary_sensor.py +++ b/homeassistant/components/bmw_connected_drive/binary_sensor.py @@ -6,7 +6,7 @@ from homeassistant.const import LENGTH_KILOMETERS from . import DOMAIN as BMW_DOMAIN - +DEPENDENCIES = ['bmw_connected_drive'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/bmw_connected_drive/device_tracker.py b/homeassistant/components/bmw_connected_drive/device_tracker.py index 7362daf090d..20e84e33e29 100644 --- a/homeassistant/components/bmw_connected_drive/device_tracker.py +++ b/homeassistant/components/bmw_connected_drive/device_tracker.py @@ -5,7 +5,7 @@ from homeassistant.util import slugify from . import DOMAIN as BMW_DOMAIN - +DEPENDENCIES = ['bmw_connected_drive'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/bmw_connected_drive/lock.py b/homeassistant/components/bmw_connected_drive/lock.py index 9b30eb0a888..fe646dcd1c9 100644 --- a/homeassistant/components/bmw_connected_drive/lock.py +++ b/homeassistant/components/bmw_connected_drive/lock.py @@ -6,7 +6,7 @@ from homeassistant.const import STATE_LOCKED, STATE_UNLOCKED from . import DOMAIN as BMW_DOMAIN - +DEPENDENCIES = ['bmw_connected_drive'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/bmw_connected_drive/sensor.py b/homeassistant/components/bmw_connected_drive/sensor.py index 20e24c623e4..03c03f01b4a 100644 --- a/homeassistant/components/bmw_connected_drive/sensor.py +++ b/homeassistant/components/bmw_connected_drive/sensor.py @@ -9,7 +9,7 @@ from homeassistant.helpers.icon import icon_for_battery_level from . import DOMAIN as BMW_DOMAIN - +DEPENDENCIES = ['bmw_connected_drive'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/bom/camera.py b/homeassistant/components/bom/camera.py index c6751330e41..d3e78034015 100644 --- a/homeassistant/components/bom/camera.py +++ b/homeassistant/components/bom/camera.py @@ -5,7 +5,7 @@ from homeassistant.components.camera import PLATFORM_SCHEMA, Camera from homeassistant.const import CONF_ID, CONF_NAME from homeassistant.helpers import config_validation as cv - +REQUIREMENTS = ['bomradarloop==0.1.2'] CONF_DELTA = 'delta' CONF_FRAMES = 'frames' diff --git a/homeassistant/components/braviatv/media_player.py b/homeassistant/components/braviatv/media_player.py index 4b2bbe22c42..45fdb63a4a9 100644 --- a/homeassistant/components/braviatv/media_player.py +++ b/homeassistant/components/braviatv/media_player.py @@ -15,7 +15,7 @@ from homeassistant.const import CONF_HOST, CONF_NAME, STATE_OFF, STATE_ON import homeassistant.helpers.config_validation as cv from homeassistant.util.json import load_json, save_json - +REQUIREMENTS = ['braviarc-homeassistant==0.3.7.dev0'] BRAVIA_CONFIG_FILE = 'bravia.conf' diff --git a/homeassistant/components/broadlink/sensor.py b/homeassistant/components/broadlink/sensor.py index a4f0d5d1c53..b3ce245a979 100644 --- a/homeassistant/components/broadlink/sensor.py +++ b/homeassistant/components/broadlink/sensor.py @@ -14,7 +14,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['broadlink==0.9.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/broadlink/switch.py b/homeassistant/components/broadlink/switch.py index 95eeccbf101..8695f70786c 100644 --- a/homeassistant/components/broadlink/switch.py +++ b/homeassistant/components/broadlink/switch.py @@ -17,7 +17,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle, slugify from homeassistant.util.dt import utcnow - +REQUIREMENTS = ['broadlink==0.9.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/brottsplatskartan/sensor.py b/homeassistant/components/brottsplatskartan/sensor.py index d895b48da29..f990dd1aba1 100644 --- a/homeassistant/components/brottsplatskartan/sensor.py +++ b/homeassistant/components/brottsplatskartan/sensor.py @@ -12,7 +12,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['brottsplatskartan==0.0.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/brunt/cover.py b/homeassistant/components/brunt/cover.py index 73c30e344b8..dc17cebcec2 100644 --- a/homeassistant/components/brunt/cover.py +++ b/homeassistant/components/brunt/cover.py @@ -13,7 +13,7 @@ from homeassistant.components.cover import ( ) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['brunt==0.1.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/bt_home_hub_5/device_tracker.py b/homeassistant/components/bt_home_hub_5/device_tracker.py index 5e1ae73f4bb..61853c0af89 100644 --- a/homeassistant/components/bt_home_hub_5/device_tracker.py +++ b/homeassistant/components/bt_home_hub_5/device_tracker.py @@ -8,7 +8,7 @@ from homeassistant.components.device_tracker import (DOMAIN, PLATFORM_SCHEMA, DeviceScanner) from homeassistant.const import CONF_HOST - +REQUIREMENTS = ['bthomehub5-devicelist==0.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/bt_smarthub/device_tracker.py b/homeassistant/components/bt_smarthub/device_tracker.py index ce253e054f2..5820feda567 100644 --- a/homeassistant/components/bt_smarthub/device_tracker.py +++ b/homeassistant/components/bt_smarthub/device_tracker.py @@ -8,7 +8,7 @@ from homeassistant.components.device_tracker import ( DOMAIN, PLATFORM_SCHEMA, DeviceScanner) from homeassistant.const import CONF_HOST - +REQUIREMENTS = ['btsmarthub_devicelist==0.1.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/buienradar/sensor.py b/homeassistant/components/buienradar/sensor.py index 0d14c000730..754873fa2c9 100644 --- a/homeassistant/components/buienradar/sensor.py +++ b/homeassistant/components/buienradar/sensor.py @@ -17,7 +17,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.helpers.event import async_track_point_in_utc_time from homeassistant.util import dt as dt_util - +REQUIREMENTS = ['buienradar==0.91'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/buienradar/weather.py b/homeassistant/components/buienradar/weather.py index af586b33f9b..86dcb229a78 100644 --- a/homeassistant/components/buienradar/weather.py +++ b/homeassistant/components/buienradar/weather.py @@ -13,7 +13,7 @@ from homeassistant.helpers import config_validation as cv # Reuse data and API logic from the sensor implementation from .sensor import BrData - +REQUIREMENTS = ['buienradar==0.91'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/caldav/calendar.py b/homeassistant/components/caldav/calendar.py index 1c420fef3e1..65cb20811b8 100644 --- a/homeassistant/components/caldav/calendar.py +++ b/homeassistant/components/caldav/calendar.py @@ -12,7 +12,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle, dt - +REQUIREMENTS = ['caldav==0.5.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/calendar/__init__.py b/homeassistant/components/calendar/__init__.py index cbe7740420b..aa9e3153fe5 100644 --- a/homeassistant/components/calendar/__init__.py +++ b/homeassistant/components/calendar/__init__.py @@ -22,7 +22,7 @@ _LOGGER = logging.getLogger(__name__) DOMAIN = 'calendar' - +DEPENDENCIES = ['http'] ENTITY_ID_FORMAT = DOMAIN + '.{}' diff --git a/homeassistant/components/camera/__init__.py b/homeassistant/components/camera/__init__.py index 25b4e5cd709..2ddab537acc 100644 --- a/homeassistant/components/camera/__init__.py +++ b/homeassistant/components/camera/__init__.py @@ -36,7 +36,7 @@ import homeassistant.helpers.config_validation as cv from .const import DOMAIN, DATA_CAMERA_PREFS from .prefs import CameraPreferences - +DEPENDENCIES = ['http'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/canary/__init__.py b/homeassistant/components/canary/__init__.py index 7ff09863bda..e53c7e22d2d 100644 --- a/homeassistant/components/canary/__init__.py +++ b/homeassistant/components/canary/__init__.py @@ -10,7 +10,7 @@ from homeassistant.const import CONF_USERNAME, CONF_PASSWORD, CONF_TIMEOUT from homeassistant.helpers import discovery from homeassistant.util import Throttle - +REQUIREMENTS = ['py-canary==0.5.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/canary/alarm_control_panel.py b/homeassistant/components/canary/alarm_control_panel.py index 511ee54f50d..faa7d819a2e 100644 --- a/homeassistant/components/canary/alarm_control_panel.py +++ b/homeassistant/components/canary/alarm_control_panel.py @@ -8,7 +8,7 @@ from homeassistant.const import ( from . import DATA_CANARY - +DEPENDENCIES = ['canary'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/canary/camera.py b/homeassistant/components/canary/camera.py index cf5edb0f3f1..fc740a46f62 100644 --- a/homeassistant/components/canary/camera.py +++ b/homeassistant/components/canary/camera.py @@ -13,7 +13,7 @@ from homeassistant.util import Throttle from . import DATA_CANARY, DEFAULT_TIMEOUT - +DEPENDENCIES = ['canary', 'ffmpeg'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/canary/sensor.py b/homeassistant/components/canary/sensor.py index 73054e610b6..fb3aaf78b0a 100644 --- a/homeassistant/components/canary/sensor.py +++ b/homeassistant/components/canary/sensor.py @@ -6,7 +6,7 @@ from homeassistant.helpers.icon import icon_for_battery_level from . import DATA_CANARY - +DEPENDENCIES = ['canary'] SENSOR_VALUE_PRECISION = 2 ATTR_AIR_QUALITY = "air_quality" diff --git a/homeassistant/components/cast/__init__.py b/homeassistant/components/cast/__init__.py index 140563a4337..0ec3ac150d7 100644 --- a/homeassistant/components/cast/__init__.py +++ b/homeassistant/components/cast/__init__.py @@ -2,7 +2,7 @@ from homeassistant import config_entries from homeassistant.helpers import config_entry_flow - +REQUIREMENTS = ['pychromecast==3.2.0'] DOMAIN = 'cast' diff --git a/homeassistant/components/channels/media_player.py b/homeassistant/components/channels/media_player.py index 12959fe6729..afe29ae079f 100644 --- a/homeassistant/components/channels/media_player.py +++ b/homeassistant/components/channels/media_player.py @@ -15,7 +15,7 @@ from homeassistant.const import ( STATE_PLAYING) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pychannels==1.0.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/cisco_ios/device_tracker.py b/homeassistant/components/cisco_ios/device_tracker.py index 1941e3cd9b4..d5a64626e89 100644 --- a/homeassistant/components/cisco_ios/device_tracker.py +++ b/homeassistant/components/cisco_ios/device_tracker.py @@ -11,7 +11,7 @@ from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME, \ _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pexpect==4.6.0'] PLATFORM_SCHEMA = vol.All( PLATFORM_SCHEMA.extend({ diff --git a/homeassistant/components/cisco_mobility_express/device_tracker.py b/homeassistant/components/cisco_mobility_express/device_tracker.py index e4d6a741f51..a722a994350 100644 --- a/homeassistant/components/cisco_mobility_express/device_tracker.py +++ b/homeassistant/components/cisco_mobility_express/device_tracker.py @@ -10,7 +10,7 @@ from homeassistant.const import ( CONF_HOST, CONF_USERNAME, CONF_PASSWORD, CONF_SSL, CONF_VERIFY_SSL) - +REQUIREMENTS = ['ciscomobilityexpress==0.1.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/cisco_webex_teams/notify.py b/homeassistant/components/cisco_webex_teams/notify.py index f0e290ca729..f893d4071b0 100644 --- a/homeassistant/components/cisco_webex_teams/notify.py +++ b/homeassistant/components/cisco_webex_teams/notify.py @@ -8,7 +8,7 @@ from homeassistant.components.notify import ( from homeassistant.const import (CONF_TOKEN) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['webexteamssdk==1.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ciscospark/notify.py b/homeassistant/components/ciscospark/notify.py index 58fb4c75013..2eccb233a3c 100644 --- a/homeassistant/components/ciscospark/notify.py +++ b/homeassistant/components/ciscospark/notify.py @@ -9,7 +9,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.components.notify import (ATTR_TITLE, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['ciscosparkapi==0.4.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/clementine/media_player.py b/homeassistant/components/clementine/media_player.py index faffb51c81a..65c6be19845 100644 --- a/homeassistant/components/clementine/media_player.py +++ b/homeassistant/components/clementine/media_player.py @@ -16,7 +16,7 @@ from homeassistant.const import ( STATE_PAUSED, STATE_PLAYING) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['python-clementine-remote==1.0.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/cloud/__init__.py b/homeassistant/components/cloud/__init__.py index f4efea2df7f..41045ba1f91 100644 --- a/homeassistant/components/cloud/__init__.py +++ b/homeassistant/components/cloud/__init__.py @@ -24,8 +24,8 @@ from .const import ( CONF_USER_POOL_ID, DOMAIN, MODE_DEV, MODE_PROD) from .prefs import CloudPreferences - - +REQUIREMENTS = ['hass-nabucasa==0.11'] +DEPENDENCIES = ['http'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/cloud/binary_sensor.py b/homeassistant/components/cloud/binary_sensor.py index b24a057860a..19a6528e321 100644 --- a/homeassistant/components/cloud/binary_sensor.py +++ b/homeassistant/components/cloud/binary_sensor.py @@ -6,7 +6,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect from .const import DISPATCHER_REMOTE_UPDATE, DOMAIN - +DEPENDENCIES = ['cloud'] WAIT_UNTIL_CHANGE = 3 diff --git a/homeassistant/components/cloudflare/__init__.py b/homeassistant/components/cloudflare/__init__.py index 87fec8e9ff0..363e7c5eeb1 100644 --- a/homeassistant/components/cloudflare/__init__.py +++ b/homeassistant/components/cloudflare/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import CONF_API_KEY, CONF_EMAIL, CONF_ZONE import homeassistant.helpers.config_validation as cv from homeassistant.helpers.event import track_time_interval - +REQUIREMENTS = ['pycfdns==0.0.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/cmus/media_player.py b/homeassistant/components/cmus/media_player.py index b5d25d234e3..e5134508fea 100644 --- a/homeassistant/components/cmus/media_player.py +++ b/homeassistant/components/cmus/media_player.py @@ -14,7 +14,7 @@ from homeassistant.const import ( STATE_PLAYING) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pycmus==0.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/co2signal/sensor.py b/homeassistant/components/co2signal/sensor.py index 0b816356ba2..b9ae5e26ebe 100644 --- a/homeassistant/components/co2signal/sensor.py +++ b/homeassistant/components/co2signal/sensor.py @@ -11,7 +11,7 @@ from homeassistant.helpers.entity import Entity CONF_COUNTRY_CODE = "country_code" - +REQUIREMENTS = ['co2signal==0.4.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/coinbase/__init__.py b/homeassistant/components/coinbase/__init__.py index 75dd7a4ef72..40d04eadb3a 100644 --- a/homeassistant/components/coinbase/__init__.py +++ b/homeassistant/components/coinbase/__init__.py @@ -9,7 +9,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.discovery import load_platform from homeassistant.util import Throttle - +REQUIREMENTS = ['coinbase==2.1.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/coinbase/sensor.py b/homeassistant/components/coinbase/sensor.py index 88f6620b2f8..2483d46b38a 100644 --- a/homeassistant/components/coinbase/sensor.py +++ b/homeassistant/components/coinbase/sensor.py @@ -17,7 +17,7 @@ DEFAULT_COIN_ICON = 'mdi:coin' ATTRIBUTION = "Data provided by coinbase.com" DATA_COINBASE = 'coinbase_cache' - +DEPENDENCIES = ['coinbase'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/coinmarketcap/sensor.py b/homeassistant/components/coinmarketcap/sensor.py index c6102833af5..a39f11b5352 100644 --- a/homeassistant/components/coinmarketcap/sensor.py +++ b/homeassistant/components/coinmarketcap/sensor.py @@ -11,7 +11,7 @@ from homeassistant.const import ( ATTR_ATTRIBUTION, CONF_DISPLAY_CURRENCY) from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['coinmarketcap==5.0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/comfoconnect/__init__.py b/homeassistant/components/comfoconnect/__init__.py index c159b28200d..64ebec18545 100644 --- a/homeassistant/components/comfoconnect/__init__.py +++ b/homeassistant/components/comfoconnect/__init__.py @@ -9,7 +9,7 @@ from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv from homeassistant.helpers.dispatcher import dispatcher_send - +REQUIREMENTS = ['pycomfoconnect==0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/comfoconnect/fan.py b/homeassistant/components/comfoconnect/fan.py index 2187afb49df..88dcffcfd21 100644 --- a/homeassistant/components/comfoconnect/fan.py +++ b/homeassistant/components/comfoconnect/fan.py @@ -10,7 +10,7 @@ from . import DOMAIN, SIGNAL_COMFOCONNECT_UPDATE_RECEIVED, ComfoConnectBridge _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['comfoconnect'] SPEED_MAPPING = { 0: SPEED_OFF, diff --git a/homeassistant/components/comfoconnect/sensor.py b/homeassistant/components/comfoconnect/sensor.py index 65f7c2025e2..edb96b8d279 100644 --- a/homeassistant/components/comfoconnect/sensor.py +++ b/homeassistant/components/comfoconnect/sensor.py @@ -12,7 +12,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['comfoconnect'] SENSOR_TYPES = {} diff --git a/homeassistant/components/concord232/alarm_control_panel.py b/homeassistant/components/concord232/alarm_control_panel.py index 99e3fbdfd0b..a209fba93ed 100644 --- a/homeassistant/components/concord232/alarm_control_panel.py +++ b/homeassistant/components/concord232/alarm_control_panel.py @@ -12,7 +12,7 @@ from homeassistant.const import ( CONF_HOST, CONF_NAME, CONF_PORT, CONF_CODE, CONF_MODE, STATE_ALARM_ARMED_AWAY, STATE_ALARM_ARMED_HOME, STATE_ALARM_DISARMED) - +REQUIREMENTS = ['concord232==0.15'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/concord232/binary_sensor.py b/homeassistant/components/concord232/binary_sensor.py index a3d96c2e7bf..c1a31eb9ead 100644 --- a/homeassistant/components/concord232/binary_sensor.py +++ b/homeassistant/components/concord232/binary_sensor.py @@ -10,7 +10,7 @@ from homeassistant.components.binary_sensor import ( from homeassistant.const import (CONF_HOST, CONF_PORT) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['concord232==0.15'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/config/__init__.py b/homeassistant/components/config/__init__.py index 6373226399c..7807c527370 100644 --- a/homeassistant/components/config/__init__.py +++ b/homeassistant/components/config/__init__.py @@ -12,7 +12,7 @@ from homeassistant.components.http import HomeAssistantView from homeassistant.util.yaml import load_yaml, dump DOMAIN = 'config' - +DEPENDENCIES = ['http'] SECTIONS = ( 'area_registry', 'auth', diff --git a/homeassistant/components/conversation/__init__.py b/homeassistant/components/conversation/__init__.py index f16ff2f291d..bb2d692f249 100644 --- a/homeassistant/components/conversation/__init__.py +++ b/homeassistant/components/conversation/__init__.py @@ -21,7 +21,7 @@ _LOGGER = logging.getLogger(__name__) ATTR_TEXT = 'text' - +DEPENDENCIES = ['http'] DOMAIN = 'conversation' REGEX_TURN_COMMAND = re.compile(r'turn (?P(?: |\w)+) (?P\w+)') diff --git a/homeassistant/components/coolmaster/climate.py b/homeassistant/components/coolmaster/climate.py index 9fb197152ae..77bb9a6b213 100644 --- a/homeassistant/components/coolmaster/climate.py +++ b/homeassistant/components/coolmaster/climate.py @@ -13,7 +13,7 @@ from homeassistant.const import ( ATTR_TEMPERATURE, CONF_HOST, CONF_PORT, TEMP_CELSIUS, TEMP_FAHRENHEIT) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pycoolmasternet==0.0.4'] SUPPORT_FLAGS = (SUPPORT_TARGET_TEMPERATURE | SUPPORT_FAN_MODE | SUPPORT_OPERATION_MODE | SUPPORT_ON_OFF) diff --git a/homeassistant/components/cover/__init__.py b/homeassistant/components/cover/__init__.py index 7fcd47381b8..9bb1aacfaf1 100644 --- a/homeassistant/components/cover/__init__.py +++ b/homeassistant/components/cover/__init__.py @@ -22,7 +22,7 @@ from homeassistant.const import ( _LOGGER = logging.getLogger(__name__) DOMAIN = 'cover' - +DEPENDENCIES = ['group'] SCAN_INTERVAL = timedelta(seconds=15) GROUP_NAME_ALL_COVERS = 'all covers' diff --git a/homeassistant/components/cppm_tracker/device_tracker.py b/homeassistant/components/cppm_tracker/device_tracker.py index 167ea76574a..31d8122692a 100755 --- a/homeassistant/components/cppm_tracker/device_tracker.py +++ b/homeassistant/components/cppm_tracker/device_tracker.py @@ -11,7 +11,7 @@ from homeassistant.const import ( CONF_HOST, CONF_API_KEY ) - +REQUIREMENTS = ['clearpasspy==1.0.2'] SCAN_INTERVAL = timedelta(seconds=120) diff --git a/homeassistant/components/cpuspeed/sensor.py b/homeassistant/components/cpuspeed/sensor.py index 30ac7e34ca8..98d22c20d15 100644 --- a/homeassistant/components/cpuspeed/sensor.py +++ b/homeassistant/components/cpuspeed/sensor.py @@ -8,7 +8,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import CONF_NAME from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['py-cpuinfo==5.0.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/crimereports/sensor.py b/homeassistant/components/crimereports/sensor.py index 7895578b2e7..13934675517 100644 --- a/homeassistant/components/crimereports/sensor.py +++ b/homeassistant/components/crimereports/sensor.py @@ -16,7 +16,7 @@ from homeassistant.util.distance import convert from homeassistant.util.dt import now import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['crimereports==1.0.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/cups/sensor.py b/homeassistant/components/cups/sensor.py index 2b1371d093a..97f894aed86 100644 --- a/homeassistant/components/cups/sensor.py +++ b/homeassistant/components/cups/sensor.py @@ -10,7 +10,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import CONF_HOST, CONF_PORT from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pycups==1.9.73'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/daikin/__init__.py b/homeassistant/components/daikin/__init__.py index 6e21fd919c2..8e96ccb8738 100644 --- a/homeassistant/components/daikin/__init__.py +++ b/homeassistant/components/daikin/__init__.py @@ -17,7 +17,7 @@ from homeassistant.util import Throttle from . import config_flow # noqa pylint_disable=unused-import - +REQUIREMENTS = ['pydaikin==1.4.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/danfoss_air/__init__.py b/homeassistant/components/danfoss_air/__init__.py index 8b25b134a26..f4a7b92c17c 100644 --- a/homeassistant/components/danfoss_air/__init__.py +++ b/homeassistant/components/danfoss_air/__init__.py @@ -9,7 +9,7 @@ from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle - +REQUIREMENTS = ['pydanfossair==0.0.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/darksky/sensor.py b/homeassistant/components/darksky/sensor.py index 86b93ea2743..6aee3457acb 100644 --- a/homeassistant/components/darksky/sensor.py +++ b/homeassistant/components/darksky/sensor.py @@ -14,7 +14,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['python-forecastio==1.4.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/darksky/weather.py b/homeassistant/components/darksky/weather.py index 4a549750d7b..5b3db4312bf 100644 --- a/homeassistant/components/darksky/weather.py +++ b/homeassistant/components/darksky/weather.py @@ -16,7 +16,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle from homeassistant.util.pressure import convert as convert_pressure - +REQUIREMENTS = ['python-forecastio==1.4.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/datadog/__init__.py b/homeassistant/components/datadog/__init__.py index b9800c77a38..3b519514d17 100644 --- a/homeassistant/components/datadog/__init__.py +++ b/homeassistant/components/datadog/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import ( from homeassistant.helpers import state as state_helper import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['datadog==0.15.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/deconz/__init__.py b/homeassistant/components/deconz/__init__.py index 47aa00a47ac..807f82821fb 100644 --- a/homeassistant/components/deconz/__init__.py +++ b/homeassistant/components/deconz/__init__.py @@ -13,7 +13,7 @@ from .const import ( CONF_MASTER_GATEWAY, DEFAULT_PORT, DOMAIN, _LOGGER) from .gateway import DeconzGateway - +REQUIREMENTS = ['pydeconz==54'] CONFIG_SCHEMA = vol.Schema({ DOMAIN: vol.Schema({ diff --git a/homeassistant/components/deconz/binary_sensor.py b/homeassistant/components/deconz/binary_sensor.py index f8941d05838..70de1fd7cf4 100644 --- a/homeassistant/components/deconz/binary_sensor.py +++ b/homeassistant/components/deconz/binary_sensor.py @@ -8,7 +8,7 @@ from .const import ATTR_DARK, ATTR_ON, NEW_SENSOR from .deconz_device import DeconzDevice from .gateway import get_gateway_from_config_entry - +DEPENDENCIES = ['deconz'] ATTR_ORIENTATION = 'orientation' ATTR_TILTANGLE = 'tiltangle' diff --git a/homeassistant/components/deconz/climate.py b/homeassistant/components/deconz/climate.py index 4bf1459d75f..c4327d3c497 100644 --- a/homeassistant/components/deconz/climate.py +++ b/homeassistant/components/deconz/climate.py @@ -11,7 +11,7 @@ from .const import ATTR_OFFSET, ATTR_VALVE, NEW_SENSOR from .deconz_device import DeconzDevice from .gateway import get_gateway_from_config_entry - +DEPENDENCIES = ['deconz'] async def async_setup_entry(hass, config_entry, async_add_entities): diff --git a/homeassistant/components/deconz/cover.py b/homeassistant/components/deconz/cover.py index cfad5028076..903c1160eb8 100644 --- a/homeassistant/components/deconz/cover.py +++ b/homeassistant/components/deconz/cover.py @@ -9,7 +9,7 @@ from .const import COVER_TYPES, DAMPERS, NEW_LIGHT, WINDOW_COVERS from .deconz_device import DeconzDevice from .gateway import get_gateway_from_config_entry - +DEPENDENCIES = ['deconz'] ZIGBEE_SPEC = ['lumi.curtain'] diff --git a/homeassistant/components/deconz/light.py b/homeassistant/components/deconz/light.py index 135f7cf3867..b5a2b075f75 100644 --- a/homeassistant/components/deconz/light.py +++ b/homeassistant/components/deconz/light.py @@ -12,7 +12,7 @@ from .const import COVER_TYPES, NEW_GROUP, NEW_LIGHT, SWITCH_TYPES from .deconz_device import DeconzDevice from .gateway import get_gateway_from_config_entry - +DEPENDENCIES = ['deconz'] async def async_setup_platform( diff --git a/homeassistant/components/deconz/scene.py b/homeassistant/components/deconz/scene.py index 5035f5b3693..1ae1e079daa 100644 --- a/homeassistant/components/deconz/scene.py +++ b/homeassistant/components/deconz/scene.py @@ -6,7 +6,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect from .const import NEW_SCENE from .gateway import get_gateway_from_config_entry - +DEPENDENCIES = ['deconz'] async def async_setup_platform( diff --git a/homeassistant/components/deconz/sensor.py b/homeassistant/components/deconz/sensor.py index 63d23a7913d..7c3109e1f59 100644 --- a/homeassistant/components/deconz/sensor.py +++ b/homeassistant/components/deconz/sensor.py @@ -9,7 +9,7 @@ from .const import ATTR_DARK, ATTR_ON, NEW_SENSOR from .deconz_device import DeconzDevice from .gateway import get_gateway_from_config_entry - +DEPENDENCIES = ['deconz'] ATTR_CURRENT = 'current' ATTR_DAYLIGHT = 'daylight' diff --git a/homeassistant/components/deconz/switch.py b/homeassistant/components/deconz/switch.py index 40826635d67..b9f959766fc 100644 --- a/homeassistant/components/deconz/switch.py +++ b/homeassistant/components/deconz/switch.py @@ -7,7 +7,7 @@ from .const import NEW_LIGHT, POWER_PLUGS, SIRENS from .deconz_device import DeconzDevice from .gateway import get_gateway_from_config_entry - +DEPENDENCIES = ['deconz'] async def async_setup_platform( diff --git a/homeassistant/components/decora/light.py b/homeassistant/components/decora/light.py index 090d58fcb1a..fc8b2859c07 100644 --- a/homeassistant/components/decora/light.py +++ b/homeassistant/components/decora/light.py @@ -12,7 +12,7 @@ from homeassistant.components.light import ( PLATFORM_SCHEMA) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['decora==0.6', 'bluepy==1.1.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/decora_wifi/light.py b/homeassistant/components/decora_wifi/light.py index 5d2592b019a..b7be6bffb01 100644 --- a/homeassistant/components/decora_wifi/light.py +++ b/homeassistant/components/decora_wifi/light.py @@ -12,7 +12,7 @@ from homeassistant.const import ( EVENT_HOMEASSISTANT_STOP) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['decora_wifi==1.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/deluge/sensor.py b/homeassistant/components/deluge/sensor.py index 5665a409d8c..32b1c16a47c 100644 --- a/homeassistant/components/deluge/sensor.py +++ b/homeassistant/components/deluge/sensor.py @@ -11,7 +11,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity from homeassistant.exceptions import PlatformNotReady - +REQUIREMENTS = ['deluge-client==1.4.0'] _LOGGER = logging.getLogger(__name__) _THROTTLED_REFRESH = None diff --git a/homeassistant/components/deluge/switch.py b/homeassistant/components/deluge/switch.py index 52db97dd708..d7c60bd96e2 100644 --- a/homeassistant/components/deluge/switch.py +++ b/homeassistant/components/deluge/switch.py @@ -11,7 +11,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import ToggleEntity import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['deluge-client==1.4.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/demo/__init__.py b/homeassistant/components/demo/__init__.py index 698ca1aba1a..354f0c0e375 100644 --- a/homeassistant/components/demo/__init__.py +++ b/homeassistant/components/demo/__init__.py @@ -7,7 +7,7 @@ from homeassistant import bootstrap import homeassistant.core as ha from homeassistant.const import ATTR_ENTITY_ID, CONF_PLATFORM - +DEPENDENCIES = ['conversation', 'zone'] DOMAIN = 'demo' COMPONENTS_WITH_DEMO_PLATFORM = [ diff --git a/homeassistant/components/denonavr/media_player.py b/homeassistant/components/denonavr/media_player.py index c94c812b0a1..0adafe4f472 100644 --- a/homeassistant/components/denonavr/media_player.py +++ b/homeassistant/components/denonavr/media_player.py @@ -18,7 +18,7 @@ from homeassistant.const import ( STATE_PAUSED, STATE_PLAYING) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['denonavr==0.7.8'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/deutsche_bahn/sensor.py b/homeassistant/components/deutsche_bahn/sensor.py index e308e935ad1..41584b2561f 100644 --- a/homeassistant/components/deutsche_bahn/sensor.py +++ b/homeassistant/components/deutsche_bahn/sensor.py @@ -9,7 +9,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['schiene==0.23'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/device_sun_light_trigger/__init__.py b/homeassistant/components/device_sun_light_trigger/__init__.py index 696584275e7..00adefc6b5c 100644 --- a/homeassistant/components/device_sun_light_trigger/__init__.py +++ b/homeassistant/components/device_sun_light_trigger/__init__.py @@ -17,7 +17,7 @@ from homeassistant.helpers.sun import is_up, get_astral_event_next import homeassistant.helpers.config_validation as cv DOMAIN = 'device_sun_light_trigger' - +DEPENDENCIES = ['light', 'device_tracker', 'group'] CONF_DEVICE_GROUP = 'device_group' CONF_DISABLE_TURN_OFF = 'disable_turn_off' diff --git a/homeassistant/components/device_tracker/__init__.py b/homeassistant/components/device_tracker/__init__.py index a85113f0832..42d301721da 100644 --- a/homeassistant/components/device_tracker/__init__.py +++ b/homeassistant/components/device_tracker/__init__.py @@ -35,7 +35,7 @@ from homeassistant.const import ( _LOGGER = logging.getLogger(__name__) DOMAIN = 'device_tracker' - +DEPENDENCIES = ['zone', 'group'] GROUP_NAME_ALL_DEVICES = 'all devices' ENTITY_ID_ALL_DEVICES = group.ENTITY_ID_FORMAT.format('all_devices') diff --git a/homeassistant/components/dht/sensor.py b/homeassistant/components/dht/sensor.py index 1c9478a3fd3..719c2525f0a 100644 --- a/homeassistant/components/dht/sensor.py +++ b/homeassistant/components/dht/sensor.py @@ -12,7 +12,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle from homeassistant.util.temperature import celsius_to_fahrenheit - +REQUIREMENTS = ['Adafruit-DHT==1.4.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/dialogflow/__init__.py b/homeassistant/components/dialogflow/__init__.py index 00a9dd5242b..1536fe3d236 100644 --- a/homeassistant/components/dialogflow/__init__.py +++ b/homeassistant/components/dialogflow/__init__.py @@ -10,7 +10,7 @@ from homeassistant.helpers import intent, template, config_entry_flow _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['webhook'] DOMAIN = 'dialogflow' SOURCE = "Home Assistant Dialogflow" diff --git a/homeassistant/components/digital_ocean/__init__.py b/homeassistant/components/digital_ocean/__init__.py index 2a024ba69e3..7975a6eea0d 100644 --- a/homeassistant/components/digital_ocean/__init__.py +++ b/homeassistant/components/digital_ocean/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import CONF_ACCESS_TOKEN from homeassistant.util import Throttle import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['python-digitalocean==1.13.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/digital_ocean/binary_sensor.py b/homeassistant/components/digital_ocean/binary_sensor.py index 69b4432f441..d496a09161b 100644 --- a/homeassistant/components/digital_ocean/binary_sensor.py +++ b/homeassistant/components/digital_ocean/binary_sensor.py @@ -17,7 +17,7 @@ _LOGGER = logging.getLogger(__name__) DEFAULT_NAME = 'Droplet' DEFAULT_DEVICE_CLASS = 'moving' - +DEPENDENCIES = ['digital_ocean'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_DROPLETS): vol.All(cv.ensure_list, [cv.string]), diff --git a/homeassistant/components/digital_ocean/switch.py b/homeassistant/components/digital_ocean/switch.py index 4285e408126..bc4a6a29b42 100644 --- a/homeassistant/components/digital_ocean/switch.py +++ b/homeassistant/components/digital_ocean/switch.py @@ -14,7 +14,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['digital_ocean'] DEFAULT_NAME = 'Droplet' diff --git a/homeassistant/components/digitalloggers/switch.py b/homeassistant/components/digitalloggers/switch.py index 7f6b3bf185e..89973cfad0c 100644 --- a/homeassistant/components/digitalloggers/switch.py +++ b/homeassistant/components/digitalloggers/switch.py @@ -10,7 +10,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle - +REQUIREMENTS = ['dlipower==0.7.165'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/directv/media_player.py b/homeassistant/components/directv/media_player.py index 59a4bd18d23..3a30282bdf4 100644 --- a/homeassistant/components/directv/media_player.py +++ b/homeassistant/components/directv/media_player.py @@ -15,7 +15,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['directpy==0.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/discogs/sensor.py b/homeassistant/components/discogs/sensor.py index da40d2d3b72..f8d66688b4f 100644 --- a/homeassistant/components/discogs/sensor.py +++ b/homeassistant/components/discogs/sensor.py @@ -12,7 +12,7 @@ from homeassistant.helpers.aiohttp_client import SERVER_SOFTWARE import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['discogs_client==2.2.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/discord/notify.py b/homeassistant/components/discord/notify.py index ebe676d3317..cb6fc8329c6 100644 --- a/homeassistant/components/discord/notify.py +++ b/homeassistant/components/discord/notify.py @@ -12,7 +12,7 @@ from homeassistant.components.notify import (ATTR_DATA, ATTR_TARGET, _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['discord.py==0.16.12'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_TOKEN): cv.string diff --git a/homeassistant/components/discovery/__init__.py b/homeassistant/components/discovery/__init__.py index a5212a6f107..8e3a350c5ca 100644 --- a/homeassistant/components/discovery/__init__.py +++ b/homeassistant/components/discovery/__init__.py @@ -20,7 +20,7 @@ from homeassistant.helpers.event import async_track_point_in_utc_time from homeassistant.helpers.discovery import async_load_platform, async_discover import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['netdisco==2.6.0'] DOMAIN = 'discovery' diff --git a/homeassistant/components/dlib_face_detect/image_processing.py b/homeassistant/components/dlib_face_detect/image_processing.py index 0d4b37b4a15..49fbfadff7e 100644 --- a/homeassistant/components/dlib_face_detect/image_processing.py +++ b/homeassistant/components/dlib_face_detect/image_processing.py @@ -8,7 +8,7 @@ from homeassistant.components.image_processing import PLATFORM_SCHEMA # noqa from homeassistant.components.image_processing import ( ImageProcessingFaceEntity, CONF_SOURCE, CONF_ENTITY_ID, CONF_NAME) - +REQUIREMENTS = ['face_recognition==1.2.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/dlib_face_identify/image_processing.py b/homeassistant/components/dlib_face_identify/image_processing.py index 6ad90893723..a3b91235125 100644 --- a/homeassistant/components/dlib_face_identify/image_processing.py +++ b/homeassistant/components/dlib_face_identify/image_processing.py @@ -10,7 +10,7 @@ from homeassistant.components.image_processing import ( CONF_NAME) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['face_recognition==1.2.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/dlink/switch.py b/homeassistant/components/dlink/switch.py index 8c0a0ad0b8f..812fd3882b3 100644 --- a/homeassistant/components/dlink/switch.py +++ b/homeassistant/components/dlink/switch.py @@ -12,7 +12,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.util import dt as dt_util - +REQUIREMENTS = ['pyW215==0.6.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/dlna_dmr/media_player.py b/homeassistant/components/dlna_dmr/media_player.py index 8b68eaa3723..54c19f70ef3 100644 --- a/homeassistant/components/dlna_dmr/media_player.py +++ b/homeassistant/components/dlna_dmr/media_player.py @@ -27,7 +27,7 @@ from homeassistant.helpers.typing import HomeAssistantType import homeassistant.helpers.config_validation as cv from homeassistant.util import get_local_ip - +REQUIREMENTS = ['async-upnp-client==0.14.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/dnsip/sensor.py b/homeassistant/components/dnsip/sensor.py index 04391d0aefa..13c9be7bb14 100644 --- a/homeassistant/components/dnsip/sensor.py +++ b/homeassistant/components/dnsip/sensor.py @@ -8,7 +8,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['aiodns==1.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/dominos/__init__.py b/homeassistant/components/dominos/__init__.py index 9a3aa02afdf..1c8966f3b4b 100644 --- a/homeassistant/components/dominos/__init__.py +++ b/homeassistant/components/dominos/__init__.py @@ -11,7 +11,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.helpers.entity_component import EntityComponent from homeassistant.util import Throttle - +REQUIREMENTS = ['pizzapi==0.0.3'] _LOGGER = logging.getLogger(__name__) @@ -34,7 +34,7 @@ ATTR_ORDER_CODES = 'codes' MIN_TIME_BETWEEN_UPDATES = timedelta(minutes=10) MIN_TIME_BETWEEN_STORE_UPDATES = timedelta(minutes=3330) - +DEPENDENCIES = ['http'] _ORDERS_SCHEMA = vol.Schema({ vol.Required(ATTR_ORDER_NAME): cv.string, diff --git a/homeassistant/components/doorbird/__init__.py b/homeassistant/components/doorbird/__init__.py index 15bf0bbaead..25a2c5caff9 100644 --- a/homeassistant/components/doorbird/__init__.py +++ b/homeassistant/components/doorbird/__init__.py @@ -11,7 +11,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.util import dt as dt_util, slugify - +REQUIREMENTS = ['doorbirdpy==2.0.8'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/doorbird/camera.py b/homeassistant/components/doorbird/camera.py index 89cc5211f04..a93b0fbf194 100644 --- a/homeassistant/components/doorbird/camera.py +++ b/homeassistant/components/doorbird/camera.py @@ -11,7 +11,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession from . import DOMAIN as DOORBIRD_DOMAIN - +DEPENDENCIES = ['doorbird'] _CAMERA_LAST_VISITOR = "{} Last Ring" _CAMERA_LAST_MOTION = "{} Last Motion" diff --git a/homeassistant/components/doorbird/switch.py b/homeassistant/components/doorbird/switch.py index be1de1cc853..ba6f96660d1 100644 --- a/homeassistant/components/doorbird/switch.py +++ b/homeassistant/components/doorbird/switch.py @@ -6,7 +6,7 @@ from homeassistant.components.switch import SwitchDevice from . import DOMAIN as DOORBIRD_DOMAIN - +DEPENDENCIES = ['doorbird'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/dovado/__init__.py b/homeassistant/components/dovado/__init__.py index 496e0ef676d..df2eed3011a 100644 --- a/homeassistant/components/dovado/__init__.py +++ b/homeassistant/components/dovado/__init__.py @@ -12,7 +12,7 @@ from homeassistant.util import Throttle _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['dovado==0.4.1'] DOMAIN = 'dovado' diff --git a/homeassistant/components/dovado/notify.py b/homeassistant/components/dovado/notify.py index df1269e3b97..59827529ed3 100644 --- a/homeassistant/components/dovado/notify.py +++ b/homeassistant/components/dovado/notify.py @@ -8,7 +8,7 @@ from . import DOMAIN as DOVADO_DOMAIN _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['dovado'] def get_service(hass, config, discovery_info=None): diff --git a/homeassistant/components/dovado/sensor.py b/homeassistant/components/dovado/sensor.py index 558e9cc3216..56c4ee03a3a 100644 --- a/homeassistant/components/dovado/sensor.py +++ b/homeassistant/components/dovado/sensor.py @@ -14,7 +14,7 @@ from . import DOMAIN as DOVADO_DOMAIN _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['dovado'] MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=30) diff --git a/homeassistant/components/dsmr/sensor.py b/homeassistant/components/dsmr/sensor.py index c93b83c4ec3..74f6cb37fc2 100644 --- a/homeassistant/components/dsmr/sensor.py +++ b/homeassistant/components/dsmr/sensor.py @@ -15,7 +15,7 @@ from homeassistant.helpers.entity import Entity _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['dsmr_parser==0.12'] CONF_DSMR_VERSION = 'dsmr_version' CONF_RECONNECT_INTERVAL = 'reconnect_interval' diff --git a/homeassistant/components/duke_energy/sensor.py b/homeassistant/components/duke_energy/sensor.py index 5b8b51a6955..9aada348418 100644 --- a/homeassistant/components/duke_energy/sensor.py +++ b/homeassistant/components/duke_energy/sensor.py @@ -8,7 +8,7 @@ from homeassistant.const import CONF_USERNAME, CONF_PASSWORD from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pydukeenergy==0.0.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/dunehd/media_player.py b/homeassistant/components/dunehd/media_player.py index 62a43267071..70d96424ced 100644 --- a/homeassistant/components/dunehd/media_player.py +++ b/homeassistant/components/dunehd/media_player.py @@ -11,7 +11,7 @@ from homeassistant.const import ( CONF_HOST, CONF_NAME, STATE_OFF, STATE_ON, STATE_PAUSED, STATE_PLAYING) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pdunehd==1.3'] DEFAULT_NAME = 'DuneHD' diff --git a/homeassistant/components/dweet/__init__.py b/homeassistant/components/dweet/__init__.py index 4b3716020dc..f8e5b181163 100644 --- a/homeassistant/components/dweet/__init__.py +++ b/homeassistant/components/dweet/__init__.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers import state as state_helper from homeassistant.util import Throttle - +REQUIREMENTS = ['dweepy==0.3.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/dweet/sensor.py b/homeassistant/components/dweet/sensor.py index 73273a0200f..d1a64201e6d 100644 --- a/homeassistant/components/dweet/sensor.py +++ b/homeassistant/components/dweet/sensor.py @@ -11,7 +11,7 @@ from homeassistant.const import ( CONF_NAME, CONF_VALUE_TEMPLATE, CONF_UNIT_OF_MEASUREMENT, CONF_DEVICE) from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['dweepy==0.3.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/dyson/__init__.py b/homeassistant/components/dyson/__init__.py index 04dbcbc4bb7..eccf8aac364 100644 --- a/homeassistant/components/dyson/__init__.py +++ b/homeassistant/components/dyson/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import ( CONF_DEVICES, CONF_PASSWORD, CONF_TIMEOUT, CONF_USERNAME) from homeassistant.helpers import discovery - +REQUIREMENTS = ['libpurecool==0.5.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/dyson/fan.py b/homeassistant/components/dyson/fan.py index dd49ca4522d..0140378968b 100644 --- a/homeassistant/components/dyson/fan.py +++ b/homeassistant/components/dyson/fan.py @@ -27,7 +27,7 @@ ATTR_CARBON_FILTER = 'carbon_filter' ATTR_DYSON_SPEED = 'dyson_speed' ATTR_DYSON_SPEED_LIST = 'dyson_speed_list' - +DEPENDENCIES = ['dyson'] DYSON_DOMAIN = 'dyson' DYSON_FAN_DEVICES = 'dyson_fan_devices' diff --git a/homeassistant/components/dyson/sensor.py b/homeassistant/components/dyson/sensor.py index 09a2fd4478c..2c7a71f5724 100644 --- a/homeassistant/components/dyson/sensor.py +++ b/homeassistant/components/dyson/sensor.py @@ -6,7 +6,7 @@ from homeassistant.helpers.entity import Entity from . import DYSON_DEVICES - +DEPENDENCIES = ['dyson'] SENSOR_UNITS = { 'air_quality': None, diff --git a/homeassistant/components/dyson/vacuum.py b/homeassistant/components/dyson/vacuum.py index 7f800a0d8fe..f1822b4043b 100644 --- a/homeassistant/components/dyson/vacuum.py +++ b/homeassistant/components/dyson/vacuum.py @@ -15,7 +15,7 @@ ATTR_CLEAN_ID = 'clean_id' ATTR_FULL_CLEAN_TYPE = 'full_clean_type' ATTR_POSITION = 'position' - +DEPENDENCIES = ['dyson'] DYSON_360_EYE_DEVICES = "dyson_360_eye_devices" diff --git a/homeassistant/components/ebox/sensor.py b/homeassistant/components/ebox/sensor.py index 9ce475c64f1..24458e444dc 100644 --- a/homeassistant/components/ebox/sensor.py +++ b/homeassistant/components/ebox/sensor.py @@ -21,7 +21,7 @@ from homeassistant.util import Throttle from homeassistant.exceptions import PlatformNotReady - +REQUIREMENTS = ['pyebox==1.1.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ebusd/__init__.py b/homeassistant/components/ebusd/__init__.py index 797a8a5cb20..bc1b3aa9595 100644 --- a/homeassistant/components/ebusd/__init__.py +++ b/homeassistant/components/ebusd/__init__.py @@ -13,7 +13,7 @@ from homeassistant.util import Throttle from .const import (DOMAIN, SENSOR_TYPES) - +REQUIREMENTS = ['ebusdpy==0.0.16'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ebusd/sensor.py b/homeassistant/components/ebusd/sensor.py index 75e7237f09b..942ba107509 100644 --- a/homeassistant/components/ebusd/sensor.py +++ b/homeassistant/components/ebusd/sensor.py @@ -6,7 +6,7 @@ from homeassistant.helpers.entity import Entity from .const import DOMAIN - +DEPENDENCIES = ['ebusd'] TIME_FRAME1_BEGIN = 'time_frame1_begin' TIME_FRAME1_END = 'time_frame1_end' diff --git a/homeassistant/components/ecoal_boiler/__init__.py b/homeassistant/components/ecoal_boiler/__init__.py index 18bb8171deb..6ab9fc3181c 100644 --- a/homeassistant/components/ecoal_boiler/__init__.py +++ b/homeassistant/components/ecoal_boiler/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import (CONF_HOST, CONF_PASSWORD, CONF_USERNAME, import homeassistant.helpers.config_validation as cv from homeassistant.helpers.discovery import load_platform - +REQUIREMENTS = ['ecoaliface==0.4.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ecoal_boiler/sensor.py b/homeassistant/components/ecoal_boiler/sensor.py index deb9248569f..ef8b39842d9 100644 --- a/homeassistant/components/ecoal_boiler/sensor.py +++ b/homeassistant/components/ecoal_boiler/sensor.py @@ -8,7 +8,7 @@ from . import AVAILABLE_SENSORS, DATA_ECOAL_BOILER _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['ecoal_boiler'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/ecoal_boiler/switch.py b/homeassistant/components/ecoal_boiler/switch.py index 0221cc65f20..db8759a032a 100644 --- a/homeassistant/components/ecoal_boiler/switch.py +++ b/homeassistant/components/ecoal_boiler/switch.py @@ -8,7 +8,7 @@ from . import AVAILABLE_PUMPS, DATA_ECOAL_BOILER _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['ecoal_boiler'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/ecobee/__init__.py b/homeassistant/components/ecobee/__init__.py index ef032b3cb3e..167132a5f41 100644 --- a/homeassistant/components/ecobee/__init__.py +++ b/homeassistant/components/ecobee/__init__.py @@ -11,7 +11,7 @@ from homeassistant.const import CONF_API_KEY from homeassistant.util import Throttle from homeassistant.util.json import save_json - +REQUIREMENTS = ['python-ecobee-api==0.0.18'] _CONFIGURING = {} _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ecobee/binary_sensor.py b/homeassistant/components/ecobee/binary_sensor.py index db69197f16e..ca8e551bf5e 100644 --- a/homeassistant/components/ecobee/binary_sensor.py +++ b/homeassistant/components/ecobee/binary_sensor.py @@ -2,7 +2,7 @@ from homeassistant.components import ecobee from homeassistant.components.binary_sensor import BinarySensorDevice - +DEPENDENCIES = ['ecobee'] ECOBEE_CONFIG_FILE = 'ecobee.conf' diff --git a/homeassistant/components/ecobee/climate.py b/homeassistant/components/ecobee/climate.py index e49879f3bae..44a3800afa9 100644 --- a/homeassistant/components/ecobee/climate.py +++ b/homeassistant/components/ecobee/climate.py @@ -27,7 +27,7 @@ TEMPERATURE_HOLD = 'temp' VACATION_HOLD = 'vacation' AWAY_MODE = 'awayMode' - +DEPENDENCIES = ['ecobee'] SERVICE_SET_FAN_MIN_ON_TIME = 'ecobee_set_fan_min_on_time' SERVICE_RESUME_PROGRAM = 'ecobee_resume_program' diff --git a/homeassistant/components/ecobee/notify.py b/homeassistant/components/ecobee/notify.py index c2d4f753cc7..9824d20b85e 100644 --- a/homeassistant/components/ecobee/notify.py +++ b/homeassistant/components/ecobee/notify.py @@ -10,7 +10,7 @@ from homeassistant.components.notify import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['ecobee'] CONF_INDEX = 'index' diff --git a/homeassistant/components/ecobee/sensor.py b/homeassistant/components/ecobee/sensor.py index bac1e6a441d..1f9fd5cbde8 100644 --- a/homeassistant/components/ecobee/sensor.py +++ b/homeassistant/components/ecobee/sensor.py @@ -4,7 +4,7 @@ from homeassistant.const import ( DEVICE_CLASS_HUMIDITY, DEVICE_CLASS_TEMPERATURE, TEMP_FAHRENHEIT) from homeassistant.helpers.entity import Entity - +DEPENDENCIES = ['ecobee'] ECOBEE_CONFIG_FILE = 'ecobee.conf' diff --git a/homeassistant/components/ecobee/weather.py b/homeassistant/components/ecobee/weather.py index 9eda034e650..2ba5f362b7d 100644 --- a/homeassistant/components/ecobee/weather.py +++ b/homeassistant/components/ecobee/weather.py @@ -7,7 +7,7 @@ from homeassistant.components.weather import ( ATTR_FORECAST_TIME, ATTR_FORECAST_WIND_SPEED, WeatherEntity) from homeassistant.const import TEMP_FAHRENHEIT - +DEPENDENCIES = ['ecobee'] ATTR_FORECAST_TEMP_HIGH = 'temphigh' ATTR_FORECAST_PRESSURE = 'pressure' diff --git a/homeassistant/components/econet/water_heater.py b/homeassistant/components/econet/water_heater.py index bdb63beca21..90176842bf1 100644 --- a/homeassistant/components/econet/water_heater.py +++ b/homeassistant/components/econet/water_heater.py @@ -13,7 +13,7 @@ from homeassistant.const import ( TEMP_FAHRENHEIT) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyeconet==0.0.10'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ecovacs/__init__.py b/homeassistant/components/ecovacs/__init__.py index 8f438ca5df5..124cae3ca47 100644 --- a/homeassistant/components/ecovacs/__init__.py +++ b/homeassistant/components/ecovacs/__init__.py @@ -10,7 +10,7 @@ from homeassistant.const import ( from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['sucks==0.9.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ecovacs/vacuum.py b/homeassistant/components/ecovacs/vacuum.py index 97f9ad79e03..b9fe94f2bed 100644 --- a/homeassistant/components/ecovacs/vacuum.py +++ b/homeassistant/components/ecovacs/vacuum.py @@ -11,7 +11,7 @@ from . import ECOVACS_DEVICES _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['ecovacs'] SUPPORT_ECOVACS = ( SUPPORT_BATTERY | SUPPORT_RETURN_HOME | SUPPORT_CLEAN_SPOT | diff --git a/homeassistant/components/eddystone_temperature/sensor.py b/homeassistant/components/eddystone_temperature/sensor.py index 605e8b4cf1c..ae3d498d30c 100644 --- a/homeassistant/components/eddystone_temperature/sensor.py +++ b/homeassistant/components/eddystone_temperature/sensor.py @@ -18,7 +18,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['beacontools[scan]==1.2.3', 'construct==2.9.45'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/edimax/switch.py b/homeassistant/components/edimax/switch.py index f1a81a3a04f..338e6ac932c 100644 --- a/homeassistant/components/edimax/switch.py +++ b/homeassistant/components/edimax/switch.py @@ -8,7 +8,7 @@ from homeassistant.const import ( CONF_HOST, CONF_NAME, CONF_PASSWORD, CONF_USERNAME) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyedimax==0.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/edp_redy/__init__.py b/homeassistant/components/edp_redy/__init__.py index b6de302c7af..9b8bfaa437a 100644 --- a/homeassistant/components/edp_redy/__init__.py +++ b/homeassistant/components/edp_redy/__init__.py @@ -20,7 +20,7 @@ EDP_REDY = 'edp_redy' DATA_UPDATE_TOPIC = '{0}_data_update'.format(DOMAIN) UPDATE_INTERVAL = 60 - +REQUIREMENTS = ['edp_redy==0.0.3'] CONFIG_SCHEMA = vol.Schema({ DOMAIN: vol.Schema({ diff --git a/homeassistant/components/edp_redy/sensor.py b/homeassistant/components/edp_redy/sensor.py index 83de7a5ce8d..b8f9c031c29 100644 --- a/homeassistant/components/edp_redy/sensor.py +++ b/homeassistant/components/edp_redy/sensor.py @@ -8,7 +8,7 @@ from . import EDP_REDY, EdpRedyDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['edp_redy'] # Load power in watts (W) ATTR_ACTIVE_POWER = 'active_power' diff --git a/homeassistant/components/edp_redy/switch.py b/homeassistant/components/edp_redy/switch.py index 67b5dbeb4d5..0c92f80ccf6 100644 --- a/homeassistant/components/edp_redy/switch.py +++ b/homeassistant/components/edp_redy/switch.py @@ -7,7 +7,7 @@ from . import EDP_REDY, EdpRedyDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['edp_redy'] # Load power in watts (W) ATTR_ACTIVE_POWER = 'active_power' diff --git a/homeassistant/components/ee_brightbox/device_tracker.py b/homeassistant/components/ee_brightbox/device_tracker.py index b39d0708553..46e4a3c3c24 100644 --- a/homeassistant/components/ee_brightbox/device_tracker.py +++ b/homeassistant/components/ee_brightbox/device_tracker.py @@ -8,7 +8,7 @@ from homeassistant.components.device_tracker import ( from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['eebrightbox==0.0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/egardia/__init__.py b/homeassistant/components/egardia/__init__.py index 20ac192a843..fe613824c95 100644 --- a/homeassistant/components/egardia/__init__.py +++ b/homeassistant/components/egardia/__init__.py @@ -10,7 +10,7 @@ from homeassistant.const import ( from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pythonegardia==1.0.39'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/egardia/alarm_control_panel.py b/homeassistant/components/egardia/alarm_control_panel.py index 9db8fa2e5f8..7fc60d5fb5d 100644 --- a/homeassistant/components/egardia/alarm_control_panel.py +++ b/homeassistant/components/egardia/alarm_control_panel.py @@ -13,7 +13,7 @@ from . import ( CONF_REPORT_SERVER_PORT, EGARDIA_DEVICE, EGARDIA_SERVER, REPORT_SERVER_CODES_IGNORE) - +DEPENDENCIES = ['egardia'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/egardia/binary_sensor.py b/homeassistant/components/egardia/binary_sensor.py index e1b0d42626b..d11894ae675 100644 --- a/homeassistant/components/egardia/binary_sensor.py +++ b/homeassistant/components/egardia/binary_sensor.py @@ -8,7 +8,7 @@ from . import ATTR_DISCOVER_DEVICES, EGARDIA_DEVICE _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['egardia'] EGARDIA_TYPE_TO_DEVICE_CLASS = { 'IR Sensor': 'motion', diff --git a/homeassistant/components/eight_sleep/__init__.py b/homeassistant/components/eight_sleep/__init__.py index f19338d9c2f..ca6c8a5a5c6 100644 --- a/homeassistant/components/eight_sleep/__init__.py +++ b/homeassistant/components/eight_sleep/__init__.py @@ -16,7 +16,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.helpers.event import async_track_point_in_utc_time from homeassistant.util.dt import utcnow - +REQUIREMENTS = ['pyeight==0.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/eight_sleep/binary_sensor.py b/homeassistant/components/eight_sleep/binary_sensor.py index 97d658bb6d7..a3ca27b570d 100644 --- a/homeassistant/components/eight_sleep/binary_sensor.py +++ b/homeassistant/components/eight_sleep/binary_sensor.py @@ -7,7 +7,7 @@ from . import CONF_BINARY_SENSORS, DATA_EIGHT, NAME_MAP, EightSleepHeatEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['eight_sleep'] async def async_setup_platform(hass, config, async_add_entities, diff --git a/homeassistant/components/eight_sleep/sensor.py b/homeassistant/components/eight_sleep/sensor.py index c41dde3caf1..a1ad93ec54a 100644 --- a/homeassistant/components/eight_sleep/sensor.py +++ b/homeassistant/components/eight_sleep/sensor.py @@ -5,7 +5,7 @@ from . import ( CONF_SENSORS, DATA_EIGHT, NAME_MAP, EightSleepHeatEntity, EightSleepUserEntity) - +DEPENDENCIES = ['eight_sleep'] ATTR_ROOM_TEMP = 'Room Temperature' ATTR_AVG_ROOM_TEMP = 'Average Room Temperature' diff --git a/homeassistant/components/eliqonline/sensor.py b/homeassistant/components/eliqonline/sensor.py index a1aa5d56bdc..198ca327997 100644 --- a/homeassistant/components/eliqonline/sensor.py +++ b/homeassistant/components/eliqonline/sensor.py @@ -10,7 +10,7 @@ from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv from homeassistant.helpers.aiohttp_client import async_get_clientsession - +REQUIREMENTS = ['eliqonline==1.2.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/elkm1/__init__.py b/homeassistant/components/elkm1/__init__.py index 12c6dfcf6aa..a0c08bf5429 100644 --- a/homeassistant/components/elkm1/__init__.py +++ b/homeassistant/components/elkm1/__init__.py @@ -12,7 +12,7 @@ from homeassistant.helpers import discovery from homeassistant.helpers.entity import Entity from homeassistant.helpers.typing import ConfigType # noqa - +REQUIREMENTS = ['elkm1-lib==0.7.13'] DOMAIN = 'elkm1' diff --git a/homeassistant/components/elkm1/alarm_control_panel.py b/homeassistant/components/elkm1/alarm_control_panel.py index a2f45aa2c2e..e9155dd17b5 100644 --- a/homeassistant/components/elkm1/alarm_control_panel.py +++ b/homeassistant/components/elkm1/alarm_control_panel.py @@ -12,7 +12,7 @@ from homeassistant.helpers.dispatcher import ( from . import DOMAIN as ELK_DOMAIN, ElkEntity, create_elk_entities - +DEPENDENCIES = [ELK_DOMAIN] SIGNAL_ARM_ENTITY = 'elkm1_arm' SIGNAL_DISPLAY_MESSAGE = 'elkm1_display_message' diff --git a/homeassistant/components/elkm1/climate.py b/homeassistant/components/elkm1/climate.py index 7ad5c72b1d5..93e4aa66b23 100644 --- a/homeassistant/components/elkm1/climate.py +++ b/homeassistant/components/elkm1/climate.py @@ -9,7 +9,7 @@ from homeassistant.const import PRECISION_WHOLE, STATE_ON from . import DOMAIN as ELK_DOMAIN, ElkEntity, create_elk_entities - +DEPENDENCIES = [ELK_DOMAIN] async def async_setup_platform(hass, config, async_add_entities, diff --git a/homeassistant/components/elkm1/light.py b/homeassistant/components/elkm1/light.py index 1c908672aa9..fe84ab3f251 100644 --- a/homeassistant/components/elkm1/light.py +++ b/homeassistant/components/elkm1/light.py @@ -4,7 +4,7 @@ from homeassistant.components.light import ( from . import DOMAIN as ELK_DOMAIN, ElkEntity, create_elk_entities - +DEPENDENCIES = [ELK_DOMAIN] async def async_setup_platform( diff --git a/homeassistant/components/elkm1/scene.py b/homeassistant/components/elkm1/scene.py index 671c0056d69..1d08f4cf96d 100644 --- a/homeassistant/components/elkm1/scene.py +++ b/homeassistant/components/elkm1/scene.py @@ -3,7 +3,7 @@ from homeassistant.components.scene import Scene from . import DOMAIN as ELK_DOMAIN, ElkEntity, create_elk_entities - +DEPENDENCIES = [ELK_DOMAIN] async def async_setup_platform( diff --git a/homeassistant/components/elkm1/sensor.py b/homeassistant/components/elkm1/sensor.py index 4ce93ab1295..da27a3ac4b1 100644 --- a/homeassistant/components/elkm1/sensor.py +++ b/homeassistant/components/elkm1/sensor.py @@ -1,7 +1,7 @@ """Support for control of ElkM1 sensors.""" from . import DOMAIN as ELK_DOMAIN, ElkEntity, create_elk_entities - +DEPENDENCIES = [ELK_DOMAIN] async def async_setup_platform( diff --git a/homeassistant/components/elkm1/switch.py b/homeassistant/components/elkm1/switch.py index 050999fa973..740a2965865 100644 --- a/homeassistant/components/elkm1/switch.py +++ b/homeassistant/components/elkm1/switch.py @@ -3,7 +3,7 @@ from homeassistant.components.switch import SwitchDevice from . import DOMAIN as ELK_DOMAIN, ElkEntity, create_elk_entities - +DEPENDENCIES = [ELK_DOMAIN] async def async_setup_platform( diff --git a/homeassistant/components/emby/media_player.py b/homeassistant/components/emby/media_player.py index f84b1013e7b..8a94664f352 100644 --- a/homeassistant/components/emby/media_player.py +++ b/homeassistant/components/emby/media_player.py @@ -17,7 +17,7 @@ from homeassistant.core import callback import homeassistant.helpers.config_validation as cv import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['pyemby==1.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/emulated_roku/__init__.py b/homeassistant/components/emulated_roku/__init__.py index 19550de7f68..ef87e14ec43 100644 --- a/homeassistant/components/emulated_roku/__init__.py +++ b/homeassistant/components/emulated_roku/__init__.py @@ -11,7 +11,7 @@ from .const import ( CONF_ADVERTISE_IP, CONF_ADVERTISE_PORT, CONF_HOST_IP, CONF_LISTEN_PORT, CONF_SERVERS, CONF_UPNP_BIND_MULTICAST, DOMAIN) - +REQUIREMENTS = ['emulated_roku==0.1.8'] SERVER_CONFIG_SCHEMA = vol.Schema({ vol.Required(CONF_NAME): cv.string, diff --git a/homeassistant/components/enigma2/media_player.py b/homeassistant/components/enigma2/media_player.py index 2fb3c270f4c..11c3e0fe3ce 100644 --- a/homeassistant/components/enigma2/media_player.py +++ b/homeassistant/components/enigma2/media_player.py @@ -14,7 +14,7 @@ from homeassistant.const import ( STATE_OFF, STATE_ON, STATE_PLAYING, CONF_PORT) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['openwebifpy==3.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/enocean/__init__.py b/homeassistant/components/enocean/__init__.py index 818a9ac14df..8b3c27025cd 100644 --- a/homeassistant/components/enocean/__init__.py +++ b/homeassistant/components/enocean/__init__.py @@ -6,7 +6,7 @@ import voluptuous as vol from homeassistant.const import CONF_DEVICE import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['enocean==0.40'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/enocean/binary_sensor.py b/homeassistant/components/enocean/binary_sensor.py index e87433101cd..1fde8c79e40 100644 --- a/homeassistant/components/enocean/binary_sensor.py +++ b/homeassistant/components/enocean/binary_sensor.py @@ -12,7 +12,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['enocean'] DEFAULT_NAME = 'EnOcean binary sensor' PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ diff --git a/homeassistant/components/enocean/light.py b/homeassistant/components/enocean/light.py index 5dfac6f98b0..f574f89f951 100644 --- a/homeassistant/components/enocean/light.py +++ b/homeassistant/components/enocean/light.py @@ -15,7 +15,7 @@ _LOGGER = logging.getLogger(__name__) CONF_SENDER_ID = 'sender_id' DEFAULT_NAME = 'EnOcean Light' - +DEPENDENCIES = ['enocean'] SUPPORT_ENOCEAN = SUPPORT_BRIGHTNESS diff --git a/homeassistant/components/enocean/sensor.py b/homeassistant/components/enocean/sensor.py index 3b9b250f944..8d79de2c50d 100644 --- a/homeassistant/components/enocean/sensor.py +++ b/homeassistant/components/enocean/sensor.py @@ -12,7 +12,7 @@ from homeassistant.components import enocean _LOGGER = logging.getLogger(__name__) DEFAULT_NAME = 'EnOcean sensor' - +DEPENDENCIES = ['enocean'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_ID): vol.All(cv.ensure_list, [vol.Coerce(int)]), diff --git a/homeassistant/components/enocean/switch.py b/homeassistant/components/enocean/switch.py index a86bd6af220..4dfbafd36b1 100644 --- a/homeassistant/components/enocean/switch.py +++ b/homeassistant/components/enocean/switch.py @@ -12,7 +12,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) DEFAULT_NAME = 'EnOcean Switch' - +DEPENDENCIES = ['enocean'] CONF_CHANNEL = 'channel' PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ diff --git a/homeassistant/components/enphase_envoy/sensor.py b/homeassistant/components/enphase_envoy/sensor.py index 2c478fd4135..2b62732dc91 100644 --- a/homeassistant/components/enphase_envoy/sensor.py +++ b/homeassistant/components/enphase_envoy/sensor.py @@ -10,7 +10,7 @@ from homeassistant.const import ( CONF_IP_ADDRESS, CONF_MONITORED_CONDITIONS, POWER_WATT) - +REQUIREMENTS = ['envoy_reader==0.3'] _LOGGER = logging.getLogger(__name__) SENSORS = { diff --git a/homeassistant/components/entur_public_transport/sensor.py b/homeassistant/components/entur_public_transport/sensor.py index 8386afd07cc..b2e22867690 100644 --- a/homeassistant/components/entur_public_transport/sensor.py +++ b/homeassistant/components/entur_public_transport/sensor.py @@ -14,7 +14,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['enturclient==0.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/envisalink/__init__.py b/homeassistant/components/envisalink/__init__.py index 9bd1f971a46..c46a26c6f85 100644 --- a/homeassistant/components/envisalink/__init__.py +++ b/homeassistant/components/envisalink/__init__.py @@ -12,7 +12,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.helpers.discovery import async_load_platform from homeassistant.helpers.dispatcher import async_dispatcher_send - +REQUIREMENTS = ['pyenvisalink==3.8'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/envisalink/alarm_control_panel.py b/homeassistant/components/envisalink/alarm_control_panel.py index 2d191f5958a..44874c6d5e8 100644 --- a/homeassistant/components/envisalink/alarm_control_panel.py +++ b/homeassistant/components/envisalink/alarm_control_panel.py @@ -18,7 +18,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['envisalink'] SERVICE_ALARM_KEYPRESS = 'envisalink_alarm_keypress' ATTR_KEYPRESS = 'keypress' diff --git a/homeassistant/components/envisalink/binary_sensor.py b/homeassistant/components/envisalink/binary_sensor.py index fbd2b1093a5..267bba8cd28 100644 --- a/homeassistant/components/envisalink/binary_sensor.py +++ b/homeassistant/components/envisalink/binary_sensor.py @@ -14,7 +14,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['envisalink'] async def async_setup_platform(hass, config, async_add_entities, diff --git a/homeassistant/components/envisalink/sensor.py b/homeassistant/components/envisalink/sensor.py index a1806d02ffc..67a601b02a2 100644 --- a/homeassistant/components/envisalink/sensor.py +++ b/homeassistant/components/envisalink/sensor.py @@ -11,7 +11,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['envisalink'] async def async_setup_platform( diff --git a/homeassistant/components/ephember/climate.py b/homeassistant/components/ephember/climate.py index f2a37460fa1..3052dd911ee 100644 --- a/homeassistant/components/ephember/climate.py +++ b/homeassistant/components/ephember/climate.py @@ -11,7 +11,7 @@ from homeassistant.const import ( ATTR_TEMPERATURE, TEMP_CELSIUS, CONF_USERNAME, CONF_PASSWORD, STATE_OFF) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyephember==0.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/epson/media_player.py b/homeassistant/components/epson/media_player.py index b25a4b8d1b9..57bd18e0ee0 100644 --- a/homeassistant/components/epson/media_player.py +++ b/homeassistant/components/epson/media_player.py @@ -15,7 +15,7 @@ from homeassistant.const import ( from homeassistant.helpers.aiohttp_client import async_get_clientsession import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['epson-projector==0.1.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/eq3btsmart/climate.py b/homeassistant/components/eq3btsmart/climate.py index c081bdf4456..f02bd2bc9a5 100644 --- a/homeassistant/components/eq3btsmart/climate.py +++ b/homeassistant/components/eq3btsmart/climate.py @@ -13,7 +13,7 @@ from homeassistant.const import ( TEMP_CELSIUS, PRECISION_HALVES) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['python-eq3bt==0.1.9', 'construct==2.9.45'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/esphome/__init__.py b/homeassistant/components/esphome/__init__.py index 98fdd41a388..9e6f6367cda 100644 --- a/homeassistant/components/esphome/__init__.py +++ b/homeassistant/components/esphome/__init__.py @@ -32,7 +32,7 @@ if TYPE_CHECKING: ServiceCall, UserService DOMAIN = 'esphome' - +REQUIREMENTS = ['aioesphomeapi==2.0.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/esphome/binary_sensor.py b/homeassistant/components/esphome/binary_sensor.py index 013ffb71ccb..2db2f209fa5 100644 --- a/homeassistant/components/esphome/binary_sensor.py +++ b/homeassistant/components/esphome/binary_sensor.py @@ -10,7 +10,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import from aioesphomeapi import BinarySensorInfo, BinarySensorState # noqa - +DEPENDENCIES = ['esphome'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/esphome/camera.py b/homeassistant/components/esphome/camera.py index 5ea25f7615a..319a2c2a4d9 100644 --- a/homeassistant/components/esphome/camera.py +++ b/homeassistant/components/esphome/camera.py @@ -13,7 +13,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import from aioesphomeapi import CameraInfo, CameraState # noqa - +DEPENDENCIES = ['esphome'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/esphome/climate.py b/homeassistant/components/esphome/climate.py index d25957c0154..e3cd9e488bf 100644 --- a/homeassistant/components/esphome/climate.py +++ b/homeassistant/components/esphome/climate.py @@ -19,7 +19,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import from aioesphomeapi import ClimateInfo, ClimateState, ClimateMode # noqa - +DEPENDENCIES = ['esphome'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/esphome/cover.py b/homeassistant/components/esphome/cover.py index 7e3844ee42b..68eb4221a93 100644 --- a/homeassistant/components/esphome/cover.py +++ b/homeassistant/components/esphome/cover.py @@ -15,7 +15,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import from aioesphomeapi import CoverInfo, CoverState # noqa - +DEPENDENCIES = ['esphome'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/esphome/fan.py b/homeassistant/components/esphome/fan.py index 64e40c656fc..973fa85774c 100644 --- a/homeassistant/components/esphome/fan.py +++ b/homeassistant/components/esphome/fan.py @@ -14,7 +14,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import from aioesphomeapi import FanInfo, FanState, FanSpeed # noqa - +DEPENDENCIES = ['esphome'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/esphome/light.py b/homeassistant/components/esphome/light.py index 35ba121f27d..c84c50010d9 100644 --- a/homeassistant/components/esphome/light.py +++ b/homeassistant/components/esphome/light.py @@ -17,7 +17,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import from aioesphomeapi import LightInfo, LightState # noqa - +DEPENDENCIES = ['esphome'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/esphome/sensor.py b/homeassistant/components/esphome/sensor.py index af54c52a29a..e4fb7ef82ba 100644 --- a/homeassistant/components/esphome/sensor.py +++ b/homeassistant/components/esphome/sensor.py @@ -13,7 +13,7 @@ if TYPE_CHECKING: from aioesphomeapi import ( # noqa SensorInfo, SensorState, TextSensorInfo, TextSensorState) - +DEPENDENCIES = ['esphome'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/esphome/switch.py b/homeassistant/components/esphome/switch.py index 11ad0cde157..e736c1df209 100644 --- a/homeassistant/components/esphome/switch.py +++ b/homeassistant/components/esphome/switch.py @@ -12,7 +12,7 @@ if TYPE_CHECKING: # pylint: disable=unused-import from aioesphomeapi import SwitchInfo, SwitchState # noqa - +DEPENDENCIES = ['esphome'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/etherscan/sensor.py b/homeassistant/components/etherscan/sensor.py index a442314eb2d..082295bfea5 100644 --- a/homeassistant/components/etherscan/sensor.py +++ b/homeassistant/components/etherscan/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['python-etherscan-api==0.0.3'] ATTRIBUTION = "Data provided by etherscan.io" diff --git a/homeassistant/components/eufy/__init__.py b/homeassistant/components/eufy/__init__.py index d3843144463..b0bd9109363 100644 --- a/homeassistant/components/eufy/__init__.py +++ b/homeassistant/components/eufy/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import ( from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['lakeside==0.12'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/eufy/light.py b/homeassistant/components/eufy/light.py index 5b596611cfd..62bc058f155 100644 --- a/homeassistant/components/eufy/light.py +++ b/homeassistant/components/eufy/light.py @@ -11,7 +11,7 @@ from homeassistant.util.color import ( color_temperature_mired_to_kelvin as mired_to_kelvin, color_temperature_kelvin_to_mired as kelvin_to_mired) - +DEPENDENCIES = ['eufy'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/eufy/switch.py b/homeassistant/components/eufy/switch.py index 722ceaeac5b..96d68194107 100644 --- a/homeassistant/components/eufy/switch.py +++ b/homeassistant/components/eufy/switch.py @@ -3,7 +3,7 @@ import logging from homeassistant.components.switch import SwitchDevice - +DEPENDENCIES = ['eufy'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/everlights/light.py b/homeassistant/components/everlights/light.py index 9e411912600..a628f25ea28 100644 --- a/homeassistant/components/everlights/light.py +++ b/homeassistant/components/everlights/light.py @@ -15,7 +15,7 @@ import homeassistant.util.color as color_util from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.exceptions import PlatformNotReady - +REQUIREMENTS = ['pyeverlights==0.1.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/evohome/__init__.py b/homeassistant/components/evohome/__init__.py index 74b16757452..87a563ecd6d 100644 --- a/homeassistant/components/evohome/__init__.py +++ b/homeassistant/components/evohome/__init__.py @@ -19,7 +19,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.discovery import load_platform from homeassistant.helpers.dispatcher import async_dispatcher_send - +REQUIREMENTS = ['evohomeclient==0.3.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/familyhub/camera.py b/homeassistant/components/familyhub/camera.py index 1fdc5c6ff3a..18aa969132d 100644 --- a/homeassistant/components/familyhub/camera.py +++ b/homeassistant/components/familyhub/camera.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['python-family-hub-local==0.0.2'] DEFAULT_NAME = 'FamilyHub Camera' diff --git a/homeassistant/components/fan/__init__.py b/homeassistant/components/fan/__init__.py index e4d2c1eb504..e67ba390a98 100644 --- a/homeassistant/components/fan/__init__.py +++ b/homeassistant/components/fan/__init__.py @@ -18,7 +18,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) DOMAIN = 'fan' - +DEPENDENCIES = ['group'] SCAN_INTERVAL = timedelta(seconds=30) GROUP_NAME_ALL_FANS = 'all fans' diff --git a/homeassistant/components/fastdotcom/__init__.py b/homeassistant/components/fastdotcom/__init__.py index ec8c359963b..973cc8e3659 100644 --- a/homeassistant/components/fastdotcom/__init__.py +++ b/homeassistant/components/fastdotcom/__init__.py @@ -10,7 +10,7 @@ from homeassistant.helpers.discovery import async_load_platform from homeassistant.helpers.dispatcher import dispatcher_send from homeassistant.helpers.event import async_track_time_interval - +REQUIREMENTS = ['fastdotcom==0.0.3'] DOMAIN = 'fastdotcom' DATA_UPDATED = '{}_data_updated'.format(DOMAIN) diff --git a/homeassistant/components/fastdotcom/sensor.py b/homeassistant/components/fastdotcom/sensor.py index 54923cd7f09..37fc0815ddc 100644 --- a/homeassistant/components/fastdotcom/sensor.py +++ b/homeassistant/components/fastdotcom/sensor.py @@ -7,7 +7,7 @@ from homeassistant.helpers.restore_state import RestoreEntity from . import DATA_UPDATED, DOMAIN as FASTDOTCOM_DOMAIN - +DEPENDENCIES = ['fastdotcom'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fedex/sensor.py b/homeassistant/components/fedex/sensor.py index 09f474be7ca..74ad4f7d0e5 100644 --- a/homeassistant/components/fedex/sensor.py +++ b/homeassistant/components/fedex/sensor.py @@ -14,7 +14,7 @@ from homeassistant.util import Throttle from homeassistant.util import slugify from homeassistant.util.dt import now, parse_date - +REQUIREMENTS = ['fedexdeliverymanager==1.0.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/feedreader/__init__.py b/homeassistant/components/feedreader/__init__.py index 9396d88b2d5..86744bfd39c 100644 --- a/homeassistant/components/feedreader/__init__.py +++ b/homeassistant/components/feedreader/__init__.py @@ -11,7 +11,7 @@ from homeassistant.const import EVENT_HOMEASSISTANT_START, CONF_SCAN_INTERVAL from homeassistant.helpers.event import track_time_interval import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['feedparser-homeassistant==5.2.2.dev1'] _LOGGER = getLogger(__name__) diff --git a/homeassistant/components/ffmpeg/__init__.py b/homeassistant/components/ffmpeg/__init__.py index e657fcb7f17..05bc1d99167 100644 --- a/homeassistant/components/ffmpeg/__init__.py +++ b/homeassistant/components/ffmpeg/__init__.py @@ -12,7 +12,7 @@ from homeassistant.helpers.dispatcher import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['ha-ffmpeg==2.0'] DOMAIN = 'ffmpeg' diff --git a/homeassistant/components/ffmpeg/camera.py b/homeassistant/components/ffmpeg/camera.py index f0aee43bd63..8bca13cfbb7 100644 --- a/homeassistant/components/ffmpeg/camera.py +++ b/homeassistant/components/ffmpeg/camera.py @@ -14,7 +14,7 @@ from . import CONF_EXTRA_ARGUMENTS, CONF_INPUT, DATA_FFMPEG _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['ffmpeg'] DEFAULT_NAME = 'FFmpeg' DEFAULT_ARGUMENTS = "-pred 1" diff --git a/homeassistant/components/ffmpeg_motion/binary_sensor.py b/homeassistant/components/ffmpeg_motion/binary_sensor.py index 902d658042a..c274d84329e 100644 --- a/homeassistant/components/ffmpeg_motion/binary_sensor.py +++ b/homeassistant/components/ffmpeg_motion/binary_sensor.py @@ -12,7 +12,7 @@ from homeassistant.components.ffmpeg import ( CONF_INITIAL_STATE) from homeassistant.const import CONF_NAME - +DEPENDENCIES = ['ffmpeg'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ffmpeg_noise/binary_sensor.py b/homeassistant/components/ffmpeg_noise/binary_sensor.py index 46160fac509..7efcc3deda2 100644 --- a/homeassistant/components/ffmpeg_noise/binary_sensor.py +++ b/homeassistant/components/ffmpeg_noise/binary_sensor.py @@ -12,7 +12,7 @@ from homeassistant.components.ffmpeg import ( CONF_INITIAL_STATE) from homeassistant.const import CONF_NAME - +DEPENDENCIES = ['ffmpeg'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fibaro/__init__.py b/homeassistant/components/fibaro/__init__.py index a4f6dd4f471..6b37b178a59 100644 --- a/homeassistant/components/fibaro/__init__.py +++ b/homeassistant/components/fibaro/__init__.py @@ -13,7 +13,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import convert, slugify - +REQUIREMENTS = ['fiblary3==0.1.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fibaro/binary_sensor.py b/homeassistant/components/fibaro/binary_sensor.py index c944098c605..f71a5f3662e 100644 --- a/homeassistant/components/fibaro/binary_sensor.py +++ b/homeassistant/components/fibaro/binary_sensor.py @@ -7,7 +7,7 @@ from homeassistant.const import CONF_DEVICE_CLASS, CONF_ICON from . import FIBARO_DEVICES, FibaroDevice - +DEPENDENCIES = ['fibaro'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fibaro/climate.py b/homeassistant/components/fibaro/climate.py index 11f1b15d2ea..0d1ecc3a77f 100644 --- a/homeassistant/components/fibaro/climate.py +++ b/homeassistant/components/fibaro/climate.py @@ -44,7 +44,7 @@ FAN_LEFT_RIGHT = 'left_right' FAN_UP_DOWN = 'up_down' FAN_QUIET = 'quiet' - +DEPENDENCIES = ['fibaro'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fibaro/cover.py b/homeassistant/components/fibaro/cover.py index 219fdcb4d84..0f5cc32bc96 100644 --- a/homeassistant/components/fibaro/cover.py +++ b/homeassistant/components/fibaro/cover.py @@ -6,7 +6,7 @@ from homeassistant.components.cover import ( from . import FIBARO_DEVICES, FibaroDevice - +DEPENDENCIES = ['fibaro'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fibaro/light.py b/homeassistant/components/fibaro/light.py index aa3c2fc87b5..600b566b36b 100644 --- a/homeassistant/components/fibaro/light.py +++ b/homeassistant/components/fibaro/light.py @@ -14,7 +14,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['fibaro'] def scaleto255(value): diff --git a/homeassistant/components/fibaro/scene.py b/homeassistant/components/fibaro/scene.py index 3bdb68427b5..93f0cd5b63a 100644 --- a/homeassistant/components/fibaro/scene.py +++ b/homeassistant/components/fibaro/scene.py @@ -5,7 +5,7 @@ from homeassistant.components.scene import Scene from . import FIBARO_DEVICES, FibaroDevice - +DEPENDENCIES = ['fibaro'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fibaro/sensor.py b/homeassistant/components/fibaro/sensor.py index 9761b361136..20a37fd3c23 100644 --- a/homeassistant/components/fibaro/sensor.py +++ b/homeassistant/components/fibaro/sensor.py @@ -22,7 +22,7 @@ SENSOR_TYPES = { ['Light', 'lx', None, DEVICE_CLASS_ILLUMINANCE] } - +DEPENDENCIES = ['fibaro'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fibaro/switch.py b/homeassistant/components/fibaro/switch.py index 6ab06f43122..024531f62c7 100644 --- a/homeassistant/components/fibaro/switch.py +++ b/homeassistant/components/fibaro/switch.py @@ -6,7 +6,7 @@ from homeassistant.util import convert from . import FIBARO_DEVICES, FibaroDevice - +DEPENDENCIES = ['fibaro'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fido/sensor.py b/homeassistant/components/fido/sensor.py index 9e016bcf4c5..00754c5ba68 100644 --- a/homeassistant/components/fido/sensor.py +++ b/homeassistant/components/fido/sensor.py @@ -20,7 +20,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyfido==2.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fints/sensor.py b/homeassistant/components/fints/sensor.py index fb0a89ff430..dce52785fbf 100644 --- a/homeassistant/components/fints/sensor.py +++ b/homeassistant/components/fints/sensor.py @@ -10,7 +10,7 @@ from homeassistant.const import CONF_USERNAME, CONF_PIN, CONF_URL, CONF_NAME import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['fints==1.0.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fitbit/sensor.py b/homeassistant/components/fitbit/sensor.py index 84888c48788..abbe69c3e1d 100644 --- a/homeassistant/components/fitbit/sensor.py +++ b/homeassistant/components/fitbit/sensor.py @@ -17,7 +17,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.util.json import load_json, save_json - +REQUIREMENTS = ['fitbit==0.3.0'] _CONFIGURING = {} _LOGGER = logging.getLogger(__name__) @@ -32,7 +32,7 @@ CONF_MONITORED_RESOURCES = 'monitored_resources' CONF_CLOCK_FORMAT = 'clock_format' ATTRIBUTION = 'Data provided by Fitbit.com' - +DEPENDENCIES = ['http'] FITBIT_AUTH_CALLBACK_PATH = '/api/fitbit/callback' FITBIT_AUTH_START = '/api/fitbit' diff --git a/homeassistant/components/fixer/sensor.py b/homeassistant/components/fixer/sensor.py index 3b2ce5fc1f5..f746d2008e1 100644 --- a/homeassistant/components/fixer/sensor.py +++ b/homeassistant/components/fixer/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import ATTR_ATTRIBUTION, CONF_API_KEY, CONF_NAME import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['fixerio==1.0.0a0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/flexit/climate.py b/homeassistant/components/flexit/climate.py index 62cde4e35a4..fe7b5ff8e7c 100644 --- a/homeassistant/components/flexit/climate.py +++ b/homeassistant/components/flexit/climate.py @@ -25,8 +25,8 @@ from homeassistant.components.modbus import ( CONF_HUB, DEFAULT_HUB, DOMAIN as MODBUS_DOMAIN) import homeassistant.helpers.config_validation as cv - - +REQUIREMENTS = ['pyflexit==0.3'] +DEPENDENCIES = ['modbus'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Optional(CONF_HUB, default=DEFAULT_HUB): cv.string, diff --git a/homeassistant/components/flic/binary_sensor.py b/homeassistant/components/flic/binary_sensor.py index 96acc3a8794..083ac01ab4a 100644 --- a/homeassistant/components/flic/binary_sensor.py +++ b/homeassistant/components/flic/binary_sensor.py @@ -11,7 +11,7 @@ from homeassistant.const import ( from homeassistant.components.binary_sensor import ( BinarySensorDevice, PLATFORM_SCHEMA) - +REQUIREMENTS = ['pyflic-homeassistant==0.4.dev0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/flunearyou/sensor.py b/homeassistant/components/flunearyou/sensor.py index 973bcb4cd9d..65de2c6ae43 100644 --- a/homeassistant/components/flunearyou/sensor.py +++ b/homeassistant/components/flunearyou/sensor.py @@ -13,7 +13,7 @@ from homeassistant.helpers import aiohttp_client from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['pyflunearyou==1.0.3'] _LOGGER = logging.getLogger(__name__) ATTR_CITY = 'city' diff --git a/homeassistant/components/flux/switch.py b/homeassistant/components/flux/switch.py index be0708989b8..fdd0c09b9d7 100644 --- a/homeassistant/components/flux/switch.py +++ b/homeassistant/components/flux/switch.py @@ -42,7 +42,7 @@ MODE_XY = 'xy' MODE_MIRED = 'mired' MODE_RGB = 'rgb' DEFAULT_MODE = MODE_XY - +DEPENDENCIES = ['light'] PLATFORM_SCHEMA = vol.Schema({ diff --git a/homeassistant/components/flux_led/light.py b/homeassistant/components/flux_led/light.py index b7f92b104cb..0ed14c49ec8 100644 --- a/homeassistant/components/flux_led/light.py +++ b/homeassistant/components/flux_led/light.py @@ -15,7 +15,7 @@ from homeassistant.components.light import ( import homeassistant.helpers.config_validation as cv import homeassistant.util.color as color_util - +REQUIREMENTS = ['flux_led==0.22'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/folder_watcher/__init__.py b/homeassistant/components/folder_watcher/__init__.py index 0dab42138b0..babfbd9e9aa 100644 --- a/homeassistant/components/folder_watcher/__init__.py +++ b/homeassistant/components/folder_watcher/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import ( EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['watchdog==0.8.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/foobot/sensor.py b/homeassistant/components/foobot/sensor.py index 74ebefd4a07..2eeca5243a6 100644 --- a/homeassistant/components/foobot/sensor.py +++ b/homeassistant/components/foobot/sensor.py @@ -16,7 +16,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['foobot_async==0.3.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/foscam/camera.py b/homeassistant/components/foscam/camera.py index a090a88bfc9..6ce8f1865fc 100644 --- a/homeassistant/components/foscam/camera.py +++ b/homeassistant/components/foscam/camera.py @@ -11,7 +11,7 @@ from homeassistant.helpers import config_validation as cv _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['libpyfoscam==1.0'] CONF_IP = 'ip' CONF_RTSP_PORT = 'rtsp_port' diff --git a/homeassistant/components/foursquare/__init__.py b/homeassistant/components/foursquare/__init__.py index 86686b89d6f..0c5a48049ec 100644 --- a/homeassistant/components/foursquare/__init__.py +++ b/homeassistant/components/foursquare/__init__.py @@ -12,7 +12,7 @@ _LOGGER = logging.getLogger(__name__) CONF_PUSH_SECRET = 'push_secret' - +DEPENDENCIES = ['http'] DOMAIN = 'foursquare' EVENT_CHECKIN = 'foursquare.checkin' diff --git a/homeassistant/components/free_mobile/notify.py b/homeassistant/components/free_mobile/notify.py index 665ee9d5e51..03beef52357 100644 --- a/homeassistant/components/free_mobile/notify.py +++ b/homeassistant/components/free_mobile/notify.py @@ -9,7 +9,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.components.notify import (PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['freesms==0.1.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/freebox/__init__.py b/homeassistant/components/freebox/__init__.py index 703c067f98f..7accf7820f4 100644 --- a/homeassistant/components/freebox/__init__.py +++ b/homeassistant/components/freebox/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import CONF_HOST, CONF_PORT, EVENT_HOMEASSISTANT_STOP from homeassistant.helpers import config_validation as cv, discovery from homeassistant.helpers.discovery import async_load_platform - +REQUIREMENTS = ['aiofreepybox==0.0.8'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/freebox/device_tracker.py b/homeassistant/components/freebox/device_tracker.py index 4290920a01c..5418c1c61a7 100644 --- a/homeassistant/components/freebox/device_tracker.py +++ b/homeassistant/components/freebox/device_tracker.py @@ -6,7 +6,7 @@ from homeassistant.components.device_tracker import DeviceScanner from . import DATA_FREEBOX - +DEPENDENCIES = ['freebox'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/freebox/sensor.py b/homeassistant/components/freebox/sensor.py index 7004e01dbef..328665ab51c 100644 --- a/homeassistant/components/freebox/sensor.py +++ b/homeassistant/components/freebox/sensor.py @@ -5,7 +5,7 @@ from homeassistant.helpers.entity import Entity from . import DATA_FREEBOX - +DEPENDENCIES = ['freebox'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/freebox/switch.py b/homeassistant/components/freebox/switch.py index 7a6a14d8375..4de194fc902 100644 --- a/homeassistant/components/freebox/switch.py +++ b/homeassistant/components/freebox/switch.py @@ -5,7 +5,7 @@ from homeassistant.components.switch import SwitchDevice from . import DATA_FREEBOX - +DEPENDENCIES = ['freebox'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fritz/device_tracker.py b/homeassistant/components/fritz/device_tracker.py index adb6a4ef122..3e3e04f4447 100644 --- a/homeassistant/components/fritz/device_tracker.py +++ b/homeassistant/components/fritz/device_tracker.py @@ -8,7 +8,7 @@ from homeassistant.components.device_tracker import ( DOMAIN, PLATFORM_SCHEMA, DeviceScanner) from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME - +REQUIREMENTS = ['fritzconnection==0.6.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fritzbox/__init__.py b/homeassistant/components/fritzbox/__init__.py index 17d874c2f64..81ba019acbc 100644 --- a/homeassistant/components/fritzbox/__init__.py +++ b/homeassistant/components/fritzbox/__init__.py @@ -11,7 +11,7 @@ from homeassistant.helpers import discovery _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pyfritzhome==0.4.0'] SUPPORTED_DOMAINS = ['binary_sensor', 'climate', 'switch', 'sensor'] diff --git a/homeassistant/components/fritzbox/binary_sensor.py b/homeassistant/components/fritzbox/binary_sensor.py index d98704423b3..65578c57180 100644 --- a/homeassistant/components/fritzbox/binary_sensor.py +++ b/homeassistant/components/fritzbox/binary_sensor.py @@ -7,7 +7,7 @@ from homeassistant.components.binary_sensor import BinarySensorDevice from . import DOMAIN as FRITZBOX_DOMAIN - +DEPENDENCIES = ['fritzbox'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fritzbox/climate.py b/homeassistant/components/fritzbox/climate.py index 4bb4816d0de..e2c9be833ac 100644 --- a/homeassistant/components/fritzbox/climate.py +++ b/homeassistant/components/fritzbox/climate.py @@ -16,7 +16,7 @@ from . import ( ATTR_STATE_LOCKED, ATTR_STATE_SUMMER_MODE, ATTR_STATE_WINDOW_OPEN, DOMAIN as FRITZBOX_DOMAIN) - +DEPENDENCIES = ['fritzbox'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fritzbox/sensor.py b/homeassistant/components/fritzbox/sensor.py index 0ad5a2f5309..7309f8cc618 100644 --- a/homeassistant/components/fritzbox/sensor.py +++ b/homeassistant/components/fritzbox/sensor.py @@ -9,7 +9,7 @@ from homeassistant.helpers.entity import Entity from . import ( ATTR_STATE_DEVICE_LOCKED, ATTR_STATE_LOCKED, DOMAIN as FRITZBOX_DOMAIN) - +DEPENDENCIES = ['fritzbox'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fritzbox/switch.py b/homeassistant/components/fritzbox/switch.py index e164895881b..e227cdaef8a 100644 --- a/homeassistant/components/fritzbox/switch.py +++ b/homeassistant/components/fritzbox/switch.py @@ -10,7 +10,7 @@ from homeassistant.const import ( from . import ( ATTR_STATE_DEVICE_LOCKED, ATTR_STATE_LOCKED, DOMAIN as FRITZBOX_DOMAIN) - +DEPENDENCIES = ['fritzbox'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fritzbox_callmonitor/sensor.py b/homeassistant/components/fritzbox_callmonitor/sensor.py index c0bd88d8bbc..a6641bc14ad 100644 --- a/homeassistant/components/fritzbox_callmonitor/sensor.py +++ b/homeassistant/components/fritzbox_callmonitor/sensor.py @@ -16,7 +16,7 @@ from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle - +REQUIREMENTS = ['fritzconnection==0.6.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fritzbox_netmonitor/sensor.py b/homeassistant/components/fritzbox_netmonitor/sensor.py index cd76fb05e39..93f834a894d 100644 --- a/homeassistant/components/fritzbox_netmonitor/sensor.py +++ b/homeassistant/components/fritzbox_netmonitor/sensor.py @@ -11,7 +11,7 @@ from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle - +REQUIREMENTS = ['fritzconnection==0.6.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/fritzdect/switch.py b/homeassistant/components/fritzdect/switch.py index cc4bb753274..449ae5a76f1 100644 --- a/homeassistant/components/fritzdect/switch.py +++ b/homeassistant/components/fritzdect/switch.py @@ -11,7 +11,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.const import TEMP_CELSIUS, ATTR_TEMPERATURE - +REQUIREMENTS = ['fritzhome==1.0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/frontend/__init__.py b/homeassistant/components/frontend/__init__.py index d531f46654f..cfee41dc6ae 100644 --- a/homeassistant/components/frontend/__init__.py +++ b/homeassistant/components/frontend/__init__.py @@ -21,7 +21,7 @@ from homeassistant.loader import bind_hass from .storage import async_setup_frontend_storage - +REQUIREMENTS = ['home-assistant-frontend==20190410.0'] DOMAIN = 'frontend' DEPENDENCIES = ['api', 'websocket_api', 'http', 'system_log', diff --git a/homeassistant/components/frontier_silicon/media_player.py b/homeassistant/components/frontier_silicon/media_player.py index 4eba49db47a..4f28d83e6cf 100644 --- a/homeassistant/components/frontier_silicon/media_player.py +++ b/homeassistant/components/frontier_silicon/media_player.py @@ -15,7 +15,7 @@ from homeassistant.const import ( STATE_PLAYING, STATE_UNKNOWN) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['afsapi==0.0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/futurenow/light.py b/homeassistant/components/futurenow/light.py index d2d5f04fd9f..4b570fd0a4d 100644 --- a/homeassistant/components/futurenow/light.py +++ b/homeassistant/components/futurenow/light.py @@ -11,7 +11,7 @@ from homeassistant.components.light import ( PLATFORM_SCHEMA) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyfnip==0.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/gc100/__init__.py b/homeassistant/components/gc100/__init__.py index 061ae0fbc8c..36e9c61b1ba 100644 --- a/homeassistant/components/gc100/__init__.py +++ b/homeassistant/components/gc100/__init__.py @@ -7,7 +7,7 @@ from homeassistant.const import ( EVENT_HOMEASSISTANT_STOP, CONF_HOST, CONF_PORT) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['python-gc100==1.0.3a'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/gc100/binary_sensor.py b/homeassistant/components/gc100/binary_sensor.py index a0b583f7d21..9588506af77 100644 --- a/homeassistant/components/gc100/binary_sensor.py +++ b/homeassistant/components/gc100/binary_sensor.py @@ -8,7 +8,7 @@ import homeassistant.helpers.config_validation as cv from . import CONF_PORTS, DATA_GC100 - +DEPENDENCIES = ['gc100'] _SENSORS_SCHEMA = vol.Schema({ cv.string: cv.string, diff --git a/homeassistant/components/gc100/switch.py b/homeassistant/components/gc100/switch.py index 77bf21b8594..1ffb2726495 100644 --- a/homeassistant/components/gc100/switch.py +++ b/homeassistant/components/gc100/switch.py @@ -8,7 +8,7 @@ from homeassistant.helpers.entity import ToggleEntity from . import CONF_PORTS, DATA_GC100 - +DEPENDENCIES = ['gc100'] _SWITCH_SCHEMA = vol.Schema({ cv.string: cv.string, diff --git a/homeassistant/components/gearbest/sensor.py b/homeassistant/components/gearbest/sensor.py index 6fdfc6c3dbb..e4f85a1892d 100644 --- a/homeassistant/components/gearbest/sensor.py +++ b/homeassistant/components/gearbest/sensor.py @@ -11,7 +11,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.helpers.event import track_time_interval from homeassistant.const import (CONF_NAME, CONF_ID, CONF_URL, CONF_CURRENCY) - +REQUIREMENTS = ['gearbest_parser==1.0.7'] _LOGGER = logging.getLogger(__name__) CONF_ITEMS = 'items' diff --git a/homeassistant/components/geizhals/sensor.py b/homeassistant/components/geizhals/sensor.py index 68d7fa851b5..d619d768c23 100644 --- a/homeassistant/components/geizhals/sensor.py +++ b/homeassistant/components/geizhals/sensor.py @@ -10,7 +10,7 @@ from homeassistant.util import Throttle from homeassistant.helpers.entity import Entity from homeassistant.const import CONF_NAME - +REQUIREMENTS = ['geizhals==0.0.9'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/generic_thermostat/climate.py b/homeassistant/components/generic_thermostat/climate.py index 25d33f83071..35efa82c8a3 100644 --- a/homeassistant/components/generic_thermostat/climate.py +++ b/homeassistant/components/generic_thermostat/climate.py @@ -23,7 +23,7 @@ from homeassistant.components.climate.const import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['switch', 'sensor'] DEFAULT_TOLERANCE = 0.3 DEFAULT_NAME = 'Generic Thermostat' diff --git a/homeassistant/components/geo_json_events/geo_location.py b/homeassistant/components/geo_json_events/geo_location.py index 5f7a347cee1..e89616126d5 100644 --- a/homeassistant/components/geo_json_events/geo_location.py +++ b/homeassistant/components/geo_json_events/geo_location.py @@ -16,7 +16,7 @@ from homeassistant.helpers.dispatcher import ( async_dispatcher_connect, dispatcher_send) from homeassistant.helpers.event import track_time_interval - +REQUIREMENTS = ['geojson_client==0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/geo_rss_events/sensor.py b/homeassistant/components/geo_rss_events/sensor.py index c251b92506a..f71a60c2e83 100644 --- a/homeassistant/components/geo_rss_events/sensor.py +++ b/homeassistant/components/geo_rss_events/sensor.py @@ -20,7 +20,7 @@ from homeassistant.const import ( CONF_LATITUDE, CONF_LONGITUDE, CONF_RADIUS, CONF_URL) from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['georss_generic_client==0.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/geofency/__init__.py b/homeassistant/components/geofency/__init__.py index 61860855ea4..88b72f02cc2 100644 --- a/homeassistant/components/geofency/__init__.py +++ b/homeassistant/components/geofency/__init__.py @@ -16,7 +16,7 @@ from homeassistant.util import slugify _LOGGER = logging.getLogger(__name__) DOMAIN = 'geofency' - +DEPENDENCIES = ['webhook'] CONF_MOBILE_BEACONS = 'mobile_beacons' diff --git a/homeassistant/components/geofency/device_tracker.py b/homeassistant/components/geofency/device_tracker.py index b5caaecad42..0a1a9d5f32e 100644 --- a/homeassistant/components/geofency/device_tracker.py +++ b/homeassistant/components/geofency/device_tracker.py @@ -9,7 +9,7 @@ from . import DOMAIN as GEOFENCY_DOMAIN, TRACKER_UPDATE _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['geofency'] DATA_KEY = '{}.{}'.format(GEOFENCY_DOMAIN, DEVICE_TRACKER_DOMAIN) diff --git a/homeassistant/components/github/sensor.py b/homeassistant/components/github/sensor.py index bd7f2228fae..5a86233d561 100644 --- a/homeassistant/components/github/sensor.py +++ b/homeassistant/components/github/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['PyGithub==1.43.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/gitlab_ci/sensor.py b/homeassistant/components/gitlab_ci/sensor.py index 3ea5e2a02ea..dd574b348d8 100644 --- a/homeassistant/components/gitlab_ci/sensor.py +++ b/homeassistant/components/gitlab_ci/sensor.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['python-gitlab==1.6.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/gitter/sensor.py b/homeassistant/components/gitter/sensor.py index 3fc37fe3cb6..2af9c20fb29 100644 --- a/homeassistant/components/gitter/sensor.py +++ b/homeassistant/components/gitter/sensor.py @@ -8,7 +8,7 @@ from homeassistant.const import CONF_API_KEY, CONF_NAME, CONF_ROOM import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['gitterpy==0.1.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/glances/sensor.py b/homeassistant/components/glances/sensor.py index 0eacf400533..db8f0397887 100644 --- a/homeassistant/components/glances/sensor.py +++ b/homeassistant/components/glances/sensor.py @@ -14,7 +14,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['glances_api==0.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/gntp/notify.py b/homeassistant/components/gntp/notify.py index e521ddbaa8a..fb3e96e83ab 100644 --- a/homeassistant/components/gntp/notify.py +++ b/homeassistant/components/gntp/notify.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.components.notify import ( ATTR_TITLE, ATTR_TITLE_DEFAULT, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['gntp==1.0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/goalfeed/__init__.py b/homeassistant/components/goalfeed/__init__.py index 6e276785c5b..6f0149f657a 100644 --- a/homeassistant/components/goalfeed/__init__.py +++ b/homeassistant/components/goalfeed/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import CONF_PASSWORD, CONF_USERNAME # Version downgraded due to regression in library # For details: https://github.com/nlsdfnbch/Pysher/issues/38 - +REQUIREMENTS = ['pysher==1.0.1'] DOMAIN = 'goalfeed' CONFIG_SCHEMA = vol.Schema({ diff --git a/homeassistant/components/gogogate2/cover.py b/homeassistant/components/gogogate2/cover.py index fb45526af73..4d40ddd2c72 100644 --- a/homeassistant/components/gogogate2/cover.py +++ b/homeassistant/components/gogogate2/cover.py @@ -10,7 +10,7 @@ from homeassistant.const import ( CONF_IP_ADDRESS, CONF_NAME) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pygogogate2==0.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/google/tts.py b/homeassistant/components/google/tts.py index d516ad9f43b..49a945cbbfd 100644 --- a/homeassistant/components/google/tts.py +++ b/homeassistant/components/google/tts.py @@ -12,7 +12,7 @@ import yarl from homeassistant.components.tts import CONF_LANG, PLATFORM_SCHEMA, Provider from homeassistant.helpers.aiohttp_client import async_get_clientsession - +REQUIREMENTS = ['gTTS-token==1.1.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/google_assistant/__init__.py b/homeassistant/components/google_assistant/__init__.py index 1222d97a759..0fd167c2729 100644 --- a/homeassistant/components/google_assistant/__init__.py +++ b/homeassistant/components/google_assistant/__init__.py @@ -28,7 +28,7 @@ from .http import async_register_http _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['http'] ENTITY_SCHEMA = vol.Schema({ vol.Optional(CONF_NAME): cv.string, diff --git a/homeassistant/components/google_maps/device_tracker.py b/homeassistant/components/google_maps/device_tracker.py index 9ce40711fc3..7bc9be00b8c 100644 --- a/homeassistant/components/google_maps/device_tracker.py +++ b/homeassistant/components/google_maps/device_tracker.py @@ -14,7 +14,7 @@ from homeassistant.helpers.event import track_time_interval from homeassistant.helpers.typing import ConfigType from homeassistant.util import slugify, dt as dt_util - +REQUIREMENTS = ['locationsharinglib==3.0.11'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/google_pubsub/__init__.py b/homeassistant/components/google_pubsub/__init__.py index 61c44d1e29e..18c068ea454 100644 --- a/homeassistant/components/google_pubsub/__init__.py +++ b/homeassistant/components/google_pubsub/__init__.py @@ -15,7 +15,7 @@ from homeassistant.helpers.entityfilter import FILTER_SCHEMA _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['google-cloud-pubsub==0.39.1'] DOMAIN = 'google_pubsub' diff --git a/homeassistant/components/google_travel_time/sensor.py b/homeassistant/components/google_travel_time/sensor.py index 6f7971ef03d..b448830ab02 100644 --- a/homeassistant/components/google_travel_time/sensor.py +++ b/homeassistant/components/google_travel_time/sensor.py @@ -15,7 +15,7 @@ from homeassistant.helpers import location from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['googlemaps==2.5.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/googlehome/__init__.py b/homeassistant/components/googlehome/__init__.py index f039cc0232a..6ebc2f512b1 100644 --- a/homeassistant/components/googlehome/__init__.py +++ b/homeassistant/components/googlehome/__init__.py @@ -10,7 +10,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['googledevices==1.0.2'] DOMAIN = 'googlehome' CLIENT = 'googlehome_client' diff --git a/homeassistant/components/googlehome/device_tracker.py b/homeassistant/components/googlehome/device_tracker.py index 19af4247254..c024cde0c6c 100644 --- a/homeassistant/components/googlehome/device_tracker.py +++ b/homeassistant/components/googlehome/device_tracker.py @@ -10,7 +10,7 @@ from . import CLIENT, DOMAIN as GOOGLEHOME_DOMAIN, NAME _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['googlehome'] DEFAULT_SCAN_INTERVAL = timedelta(seconds=10) diff --git a/homeassistant/components/googlehome/sensor.py b/homeassistant/components/googlehome/sensor.py index 239fd11782a..4f37740da85 100644 --- a/homeassistant/components/googlehome/sensor.py +++ b/homeassistant/components/googlehome/sensor.py @@ -8,7 +8,7 @@ import homeassistant.util.dt as dt_util from . import CLIENT, DOMAIN as GOOGLEHOME_DOMAIN, NAME - +DEPENDENCIES = ['googlehome'] SCAN_INTERVAL = timedelta(seconds=10) diff --git a/homeassistant/components/gpmdp/media_player.py b/homeassistant/components/gpmdp/media_player.py index 970e85a270d..788126b957f 100644 --- a/homeassistant/components/gpmdp/media_player.py +++ b/homeassistant/components/gpmdp/media_player.py @@ -16,7 +16,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.util.json import load_json, save_json - +REQUIREMENTS = ['websocket-client==0.54.0'] _CONFIGURING = {} _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/gpsd/sensor.py b/homeassistant/components/gpsd/sensor.py index fd13bbe8e67..62307cb1011 100644 --- a/homeassistant/components/gpsd/sensor.py +++ b/homeassistant/components/gpsd/sensor.py @@ -10,7 +10,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['gps3==0.33.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/gpslogger/__init__.py b/homeassistant/components/gpslogger/__init__.py index 77e3990bad0..6bc9d11a68e 100644 --- a/homeassistant/components/gpslogger/__init__.py +++ b/homeassistant/components/gpslogger/__init__.py @@ -15,7 +15,7 @@ from homeassistant.components.device_tracker import DOMAIN as DEVICE_TRACKER _LOGGER = logging.getLogger(__name__) DOMAIN = 'gpslogger' - +DEPENDENCIES = ['webhook'] TRACKER_UPDATE = '{}_tracker_update'.format(DOMAIN) diff --git a/homeassistant/components/gpslogger/device_tracker.py b/homeassistant/components/gpslogger/device_tracker.py index 72ab2336656..c9496975272 100644 --- a/homeassistant/components/gpslogger/device_tracker.py +++ b/homeassistant/components/gpslogger/device_tracker.py @@ -10,7 +10,7 @@ from . import DOMAIN as GPSLOGGER_DOMAIN, TRACKER_UPDATE _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['gpslogger'] DATA_KEY = '{}.{}'.format(GPSLOGGER_DOMAIN, DEVICE_TRACKER_DOMAIN) diff --git a/homeassistant/components/greeneye_monitor/__init__.py b/homeassistant/components/greeneye_monitor/__init__.py index 9d335fc0df9..aedc98aac31 100644 --- a/homeassistant/components/greeneye_monitor/__init__.py +++ b/homeassistant/components/greeneye_monitor/__init__.py @@ -11,7 +11,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.discovery import async_load_platform - +REQUIREMENTS = ['greeneye_monitor==1.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/greeneye_monitor/sensor.py b/homeassistant/components/greeneye_monitor/sensor.py index 6ce6815e33b..8321bb768ca 100644 --- a/homeassistant/components/greeneye_monitor/sensor.py +++ b/homeassistant/components/greeneye_monitor/sensor.py @@ -23,7 +23,7 @@ from ..greeneye_monitor import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['greeneye_monitor'] DATA_PULSES = 'pulses' DATA_WATT_SECONDS = 'watt_seconds' diff --git a/homeassistant/components/greenwave/light.py b/homeassistant/components/greenwave/light.py index 3e07f2613fd..b8efe8ae17d 100644 --- a/homeassistant/components/greenwave/light.py +++ b/homeassistant/components/greenwave/light.py @@ -10,7 +10,7 @@ from homeassistant.const import CONF_HOST import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle - +REQUIREMENTS = ['greenwavereality==0.5.1'] _LOGGER = logging.getLogger(__name__) CONF_VERSION = 'version' diff --git a/homeassistant/components/gstreamer/media_player.py b/homeassistant/components/gstreamer/media_player.py index 903a50c908e..094a561d310 100644 --- a/homeassistant/components/gstreamer/media_player.py +++ b/homeassistant/components/gstreamer/media_player.py @@ -11,7 +11,7 @@ from homeassistant.components.media_player.const import ( from homeassistant.const import CONF_NAME, EVENT_HOMEASSISTANT_STOP, STATE_IDLE import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['gstreamer-player==1.1.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/gtfs/sensor.py b/homeassistant/components/gtfs/sensor.py index 85db95eb2d3..9e89a8ad844 100644 --- a/homeassistant/components/gtfs/sensor.py +++ b/homeassistant/components/gtfs/sensor.py @@ -17,7 +17,7 @@ from homeassistant.helpers.typing import ConfigType, HomeAssistantType from homeassistant.util import slugify import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['pygtfs==0.1.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/gtt/sensor.py b/homeassistant/components/gtt/sensor.py index 9638e431e6d..659984fadea 100644 --- a/homeassistant/components/gtt/sensor.py +++ b/homeassistant/components/gtt/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import DEVICE_CLASS_TIMESTAMP from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pygtt==1.1.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/habitica/__init__.py b/homeassistant/components/habitica/__init__.py index 54600825073..23113a1388b 100644 --- a/homeassistant/components/habitica/__init__.py +++ b/homeassistant/components/habitica/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import ( from homeassistant.helpers import config_validation as cv, discovery from homeassistant.helpers.aiohttp_client import async_get_clientsession - +REQUIREMENTS = ['habitipy==0.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hangouts/__init__.py b/homeassistant/components/hangouts/__init__.py index 8bec2827b92..29cdc29e5ad 100644 --- a/homeassistant/components/hangouts/__init__.py +++ b/homeassistant/components/hangouts/__init__.py @@ -19,7 +19,7 @@ from .const import ( MESSAGE_SCHEMA, SERVICE_RECONNECT, SERVICE_SEND_MESSAGE, SERVICE_UPDATE, TARGETS_SCHEMA) - +REQUIREMENTS = ['hangups==0.4.9'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hangouts/notify.py b/homeassistant/components/hangouts/notify.py index dbf884af85f..de9af2e0775 100644 --- a/homeassistant/components/hangouts/notify.py +++ b/homeassistant/components/hangouts/notify.py @@ -12,7 +12,7 @@ from .const import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = [DOMAIN] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_DEFAULT_CONVERSATIONS): [TARGETS_SCHEMA] diff --git a/homeassistant/components/harman_kardon_avr/media_player.py b/homeassistant/components/harman_kardon_avr/media_player.py index 3917b043b02..cec0ac4f5c8 100644 --- a/homeassistant/components/harman_kardon_avr/media_player.py +++ b/homeassistant/components/harman_kardon_avr/media_player.py @@ -12,7 +12,7 @@ from homeassistant.components.media_player.const import ( from homeassistant.const import ( CONF_HOST, CONF_NAME, CONF_PORT, STATE_OFF, STATE_ON) - +REQUIREMENTS = ['hkavr==0.0.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/harmony/remote.py b/homeassistant/components/harmony/remote.py index 6dbf325c76a..12b3a91e12b 100644 --- a/homeassistant/components/harmony/remote.py +++ b/homeassistant/components/harmony/remote.py @@ -16,7 +16,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.exceptions import PlatformNotReady from homeassistant.util import slugify - +REQUIREMENTS = ['aioharmony==0.1.11'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hassio/__init__.py b/homeassistant/components/hassio/__init__.py index 6529521c39d..e8d04b1596d 100644 --- a/homeassistant/components/hassio/__init__.py +++ b/homeassistant/components/hassio/__init__.py @@ -25,7 +25,7 @@ from .ingress import async_setup_ingress _LOGGER = logging.getLogger(__name__) DOMAIN = 'hassio' - +DEPENDENCIES = ['http'] STORAGE_KEY = DOMAIN STORAGE_VERSION = 1 diff --git a/homeassistant/components/hdmi_cec/__init__.py b/homeassistant/components/hdmi_cec/__init__.py index 9166e080be4..8eb13c5ab21 100644 --- a/homeassistant/components/hdmi_cec/__init__.py +++ b/homeassistant/components/hdmi_cec/__init__.py @@ -17,7 +17,7 @@ from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pyCEC==0.4.13'] DOMAIN = 'hdmi_cec' diff --git a/homeassistant/components/hdmi_cec/media_player.py b/homeassistant/components/hdmi_cec/media_player.py index 772c722718f..b2d2910e145 100644 --- a/homeassistant/components/hdmi_cec/media_player.py +++ b/homeassistant/components/hdmi_cec/media_player.py @@ -11,7 +11,7 @@ from homeassistant.const import ( from . import ATTR_NEW, CecDevice - +DEPENDENCIES = ['hdmi_cec'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hdmi_cec/switch.py b/homeassistant/components/hdmi_cec/switch.py index 87df6d74300..639f545707e 100644 --- a/homeassistant/components/hdmi_cec/switch.py +++ b/homeassistant/components/hdmi_cec/switch.py @@ -6,7 +6,7 @@ from homeassistant.const import STATE_OFF, STATE_ON, STATE_STANDBY from . import ATTR_NEW, CecDevice - +DEPENDENCIES = ['hdmi_cec'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/heatmiser/climate.py b/homeassistant/components/heatmiser/climate.py index db568a81cc5..fc9057bc905 100644 --- a/homeassistant/components/heatmiser/climate.py +++ b/homeassistant/components/heatmiser/climate.py @@ -10,7 +10,7 @@ from homeassistant.const import ( TEMP_CELSIUS, ATTR_TEMPERATURE, CONF_PORT, CONF_NAME, CONF_ID) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['heatmiserV3==0.9.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/heos/__init__.py b/homeassistant/components/heos/__init__.py index c9d5a6883dd..084444be4ea 100644 --- a/homeassistant/components/heos/__init__.py +++ b/homeassistant/components/heos/__init__.py @@ -19,7 +19,7 @@ from .const import ( COMMAND_RETRY_ATTEMPTS, COMMAND_RETRY_DELAY, DATA_CONTROLLER, DATA_SOURCE_MANAGER, DOMAIN, SIGNAL_HEOS_SOURCES_UPDATED) - +REQUIREMENTS = ['pyheos==0.3.1'] CONFIG_SCHEMA = vol.Schema({ DOMAIN: vol.Schema({ diff --git a/homeassistant/components/heos/media_player.py b/homeassistant/components/heos/media_player.py index bc7b0831993..72d42f8f66f 100644 --- a/homeassistant/components/heos/media_player.py +++ b/homeassistant/components/heos/media_player.py @@ -17,7 +17,7 @@ from homeassistant.util.dt import utcnow from .const import ( DATA_SOURCE_MANAGER, DOMAIN as HEOS_DOMAIN, SIGNAL_HEOS_SOURCES_UPDATED) - +DEPENDENCIES = ['heos'] BASE_SUPPORTED_FEATURES = SUPPORT_VOLUME_MUTE | SUPPORT_VOLUME_SET | \ SUPPORT_VOLUME_STEP | SUPPORT_CLEAR_PLAYLIST | \ diff --git a/homeassistant/components/hikvision/binary_sensor.py b/homeassistant/components/hikvision/binary_sensor.py index dbdc98b145c..a6a82c9ee1b 100644 --- a/homeassistant/components/hikvision/binary_sensor.py +++ b/homeassistant/components/hikvision/binary_sensor.py @@ -13,7 +13,7 @@ from homeassistant.const import ( CONF_SSL, EVENT_HOMEASSISTANT_STOP, EVENT_HOMEASSISTANT_START, ATTR_LAST_TRIP_TIME, CONF_CUSTOMIZE) - +REQUIREMENTS = ['pyhik==0.2.2'] _LOGGER = logging.getLogger(__name__) CONF_IGNORED = 'ignored' diff --git a/homeassistant/components/hikvisioncam/switch.py b/homeassistant/components/hikvisioncam/switch.py index 6920a4fbfe6..6e5dcdac9aa 100644 --- a/homeassistant/components/hikvisioncam/switch.py +++ b/homeassistant/components/hikvisioncam/switch.py @@ -10,7 +10,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import ToggleEntity import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['hikvision==0.4'] # This is the last working version, please test before updating _LOGGING = logging.getLogger(__name__) diff --git a/homeassistant/components/hipchat/notify.py b/homeassistant/components/hipchat/notify.py index 925e205ace6..5128b8beea3 100644 --- a/homeassistant/components/hipchat/notify.py +++ b/homeassistant/components/hipchat/notify.py @@ -10,7 +10,7 @@ from homeassistant.components.notify import (ATTR_DATA, ATTR_TARGET, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['hipnotify==1.0.8'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/history/__init__.py b/homeassistant/components/history/__init__.py index cc44526cdbd..7b07fac19a6 100644 --- a/homeassistant/components/history/__init__.py +++ b/homeassistant/components/history/__init__.py @@ -19,7 +19,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) DOMAIN = 'history' - +DEPENDENCIES = ['recorder', 'http'] CONF_ORDER = 'use_include_order' diff --git a/homeassistant/components/history_graph/__init__.py b/homeassistant/components/history_graph/__init__.py index 4a20a4b9685..893f3514d77 100644 --- a/homeassistant/components/history_graph/__init__.py +++ b/homeassistant/components/history_graph/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import CONF_ENTITIES, CONF_NAME, ATTR_ENTITY_ID from homeassistant.helpers.entity import Entity from homeassistant.helpers.entity_component import EntityComponent - +DEPENDENCIES = ['history'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/history_stats/sensor.py b/homeassistant/components/history_stats/sensor.py index 7ae29d94dea..f1eea4dd693 100644 --- a/homeassistant/components/history_stats/sensor.py +++ b/homeassistant/components/history_stats/sensor.py @@ -20,7 +20,7 @@ from homeassistant.helpers.event import async_track_state_change _LOGGER = logging.getLogger(__name__) DOMAIN = 'history_stats' - +DEPENDENCIES = ['history'] CONF_START = 'start' CONF_END = 'end' diff --git a/homeassistant/components/hive/__init__.py b/homeassistant/components/hive/__init__.py index 9931d03f23c..934c44028ac 100644 --- a/homeassistant/components/hive/__init__.py +++ b/homeassistant/components/hive/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.discovery import load_platform - +REQUIREMENTS = ['pyhiveapi==0.2.17'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hive/binary_sensor.py b/homeassistant/components/hive/binary_sensor.py index ecbf56df592..a0973f4d8e9 100644 --- a/homeassistant/components/hive/binary_sensor.py +++ b/homeassistant/components/hive/binary_sensor.py @@ -3,7 +3,7 @@ from homeassistant.components.binary_sensor import BinarySensorDevice from . import DATA_HIVE, DOMAIN - +DEPENDENCIES = ['hive'] DEVICETYPE_DEVICE_CLASS = { 'motionsensor': 'motion', diff --git a/homeassistant/components/hive/climate.py b/homeassistant/components/hive/climate.py index 3dfb3364661..dac7feb2927 100644 --- a/homeassistant/components/hive/climate.py +++ b/homeassistant/components/hive/climate.py @@ -8,7 +8,7 @@ from homeassistant.const import ( from . import DATA_HIVE, DOMAIN - +DEPENDENCIES = ['hive'] HIVE_TO_HASS_STATE = { 'SCHEDULE': STATE_AUTO, diff --git a/homeassistant/components/hive/light.py b/homeassistant/components/hive/light.py index 80734adcc4b..3a2176c3eed 100644 --- a/homeassistant/components/hive/light.py +++ b/homeassistant/components/hive/light.py @@ -6,7 +6,7 @@ import homeassistant.util.color as color_util from . import DATA_HIVE, DOMAIN - +DEPENDENCIES = ['hive'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/hive/sensor.py b/homeassistant/components/hive/sensor.py index 25df56dbfa4..e7b7d6b4597 100644 --- a/homeassistant/components/hive/sensor.py +++ b/homeassistant/components/hive/sensor.py @@ -4,7 +4,7 @@ from homeassistant.helpers.entity import Entity from . import DATA_HIVE, DOMAIN - +DEPENDENCIES = ['hive'] FRIENDLY_NAMES = { 'Hub_OnlineStatus': 'Hive Hub Status', diff --git a/homeassistant/components/hive/switch.py b/homeassistant/components/hive/switch.py index 01638080df0..fd4d3d69b50 100644 --- a/homeassistant/components/hive/switch.py +++ b/homeassistant/components/hive/switch.py @@ -3,7 +3,7 @@ from homeassistant.components.switch import SwitchDevice from . import DATA_HIVE, DOMAIN - +DEPENDENCIES = ['hive'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/hlk_sw16/__init__.py b/homeassistant/components/hlk_sw16/__init__.py index 5ba6c0d3e9f..acb604bc010 100644 --- a/homeassistant/components/hlk_sw16/__init__.py +++ b/homeassistant/components/hlk_sw16/__init__.py @@ -13,7 +13,7 @@ from homeassistant.helpers.discovery import async_load_platform from homeassistant.helpers.dispatcher import ( async_dispatcher_send, async_dispatcher_connect) - +REQUIREMENTS = ['hlk-sw16==0.0.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hlk_sw16/switch.py b/homeassistant/components/hlk_sw16/switch.py index 0be8678755e..164a504fa34 100644 --- a/homeassistant/components/hlk_sw16/switch.py +++ b/homeassistant/components/hlk_sw16/switch.py @@ -6,7 +6,7 @@ from homeassistant.const import CONF_NAME from . import DATA_DEVICE_REGISTER, DOMAIN as HLK_SW16, SW16Device - +DEPENDENCIES = [HLK_SW16] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homekit/__init__.py b/homeassistant/components/homekit/__init__.py index f575b6d7f41..01979f03b9a 100644 --- a/homeassistant/components/homekit/__init__.py +++ b/homeassistant/components/homekit/__init__.py @@ -26,7 +26,7 @@ from .const import ( from .util import ( show_setup_message, validate_entity_config, validate_media_player_features) - +REQUIREMENTS = ['HAP-python==2.4.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homekit_controller/__init__.py b/homeassistant/components/homekit_controller/__init__.py index cc7535da85f..2a43d0ac9ce 100644 --- a/homeassistant/components/homekit_controller/__init__.py +++ b/homeassistant/components/homekit_controller/__init__.py @@ -12,7 +12,7 @@ from .const import ( ) from .const import DOMAIN # noqa: pylint: disable=unused-import - +REQUIREMENTS = ['homekit[IP]==0.13.0'] HOMEKIT_IGNORE = [ 'BSB002', diff --git a/homeassistant/components/homekit_controller/alarm_control_panel.py b/homeassistant/components/homekit_controller/alarm_control_panel.py index bf3a875e7d3..f9bc25f4237 100644 --- a/homeassistant/components/homekit_controller/alarm_control_panel.py +++ b/homeassistant/components/homekit_controller/alarm_control_panel.py @@ -8,7 +8,7 @@ from homeassistant.const import ( from . import KNOWN_DEVICES, HomeKitEntity - +DEPENDENCIES = ['homekit_controller'] ICON = 'mdi:security' diff --git a/homeassistant/components/homekit_controller/binary_sensor.py b/homeassistant/components/homekit_controller/binary_sensor.py index 81af48f902e..2bd03b18932 100644 --- a/homeassistant/components/homekit_controller/binary_sensor.py +++ b/homeassistant/components/homekit_controller/binary_sensor.py @@ -5,7 +5,7 @@ from homeassistant.components.binary_sensor import BinarySensorDevice from . import KNOWN_DEVICES, HomeKitEntity - +DEPENDENCIES = ['homekit_controller'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homekit_controller/climate.py b/homeassistant/components/homekit_controller/climate.py index c895d31874b..67f1fb72bcf 100644 --- a/homeassistant/components/homekit_controller/climate.py +++ b/homeassistant/components/homekit_controller/climate.py @@ -9,7 +9,7 @@ from homeassistant.const import ATTR_TEMPERATURE, STATE_OFF, TEMP_CELSIUS from . import KNOWN_DEVICES, HomeKitEntity - +DEPENDENCIES = ['homekit_controller'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homekit_controller/cover.py b/homeassistant/components/homekit_controller/cover.py index a07a94e6cbb..26b7613ed2b 100644 --- a/homeassistant/components/homekit_controller/cover.py +++ b/homeassistant/components/homekit_controller/cover.py @@ -12,7 +12,7 @@ from . import KNOWN_DEVICES, HomeKitEntity STATE_STOPPED = 'stopped' - +DEPENDENCIES = ['homekit_controller'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homekit_controller/light.py b/homeassistant/components/homekit_controller/light.py index 820299438b9..cb9259df4a9 100644 --- a/homeassistant/components/homekit_controller/light.py +++ b/homeassistant/components/homekit_controller/light.py @@ -7,7 +7,7 @@ from homeassistant.components.light import ( from . import KNOWN_DEVICES, HomeKitEntity - +DEPENDENCIES = ['homekit_controller'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homekit_controller/lock.py b/homeassistant/components/homekit_controller/lock.py index 9716e3d4584..0d0275fda16 100644 --- a/homeassistant/components/homekit_controller/lock.py +++ b/homeassistant/components/homekit_controller/lock.py @@ -7,7 +7,7 @@ from homeassistant.const import ( from . import KNOWN_DEVICES, HomeKitEntity - +DEPENDENCIES = ['homekit_controller'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homekit_controller/sensor.py b/homeassistant/components/homekit_controller/sensor.py index 7a7c9e73070..8cbc8f248ba 100644 --- a/homeassistant/components/homekit_controller/sensor.py +++ b/homeassistant/components/homekit_controller/sensor.py @@ -3,7 +3,7 @@ from homeassistant.const import TEMP_CELSIUS from . import KNOWN_DEVICES, HomeKitEntity - +DEPENDENCIES = ['homekit_controller'] HUMIDITY_ICON = 'mdi-water-percent' TEMP_C_ICON = "mdi-temperature-celsius" diff --git a/homeassistant/components/homekit_controller/switch.py b/homeassistant/components/homekit_controller/switch.py index 22cb9abd55e..34e83c06526 100644 --- a/homeassistant/components/homekit_controller/switch.py +++ b/homeassistant/components/homekit_controller/switch.py @@ -5,7 +5,7 @@ from homeassistant.components.switch import SwitchDevice from . import KNOWN_DEVICES, HomeKitEntity - +DEPENDENCIES = ['homekit_controller'] OUTLET_IN_USE = "outlet_in_use" diff --git a/homeassistant/components/homematic/__init__.py b/homeassistant/components/homematic/__init__.py index 78ff2b1051e..a8109af5ed8 100644 --- a/homeassistant/components/homematic/__init__.py +++ b/homeassistant/components/homematic/__init__.py @@ -14,7 +14,7 @@ from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pyhomematic==0.1.58'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homematic/binary_sensor.py b/homeassistant/components/homematic/binary_sensor.py index 5aee2b112cf..7bf260a9bdc 100644 --- a/homeassistant/components/homematic/binary_sensor.py +++ b/homeassistant/components/homematic/binary_sensor.py @@ -8,7 +8,7 @@ from . import ATTR_DISCOVER_DEVICES, HMDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['homematic'] SENSOR_TYPES_CLASS = { 'IPShutterContact': 'opening', diff --git a/homeassistant/components/homematic/climate.py b/homeassistant/components/homematic/climate.py index 202c4b9d2f3..146cad1bc4c 100644 --- a/homeassistant/components/homematic/climate.py +++ b/homeassistant/components/homematic/climate.py @@ -9,7 +9,7 @@ from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS from . import ATTR_DISCOVER_DEVICES, HM_ATTRIBUTE_SUPPORT, HMDevice - +DEPENDENCIES = ['homematic'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homematic/cover.py b/homeassistant/components/homematic/cover.py index 4f617a08241..33b764dc31f 100644 --- a/homeassistant/components/homematic/cover.py +++ b/homeassistant/components/homematic/cover.py @@ -9,7 +9,7 @@ from . import ATTR_DISCOVER_DEVICES, HMDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['homematic'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/homematic/light.py b/homeassistant/components/homematic/light.py index 6592959c270..c3601461173 100644 --- a/homeassistant/components/homematic/light.py +++ b/homeassistant/components/homematic/light.py @@ -9,7 +9,7 @@ from . import ATTR_DISCOVER_DEVICES, HMDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['homematic'] SUPPORT_HOMEMATIC = SUPPORT_BRIGHTNESS diff --git a/homeassistant/components/homematic/lock.py b/homeassistant/components/homematic/lock.py index de2dfbab31c..3c0ca040c5f 100644 --- a/homeassistant/components/homematic/lock.py +++ b/homeassistant/components/homematic/lock.py @@ -8,7 +8,7 @@ from . import ATTR_DISCOVER_DEVICES, HMDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['homematic'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/homematic/notify.py b/homeassistant/components/homematic/notify.py index 894e2c799b8..9054c1fa0ad 100644 --- a/homeassistant/components/homematic/notify.py +++ b/homeassistant/components/homematic/notify.py @@ -13,7 +13,7 @@ from . import ( SERVICE_SET_DEVICE_VALUE) _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ["homematic"] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(ATTR_ADDRESS): vol.All(cv.string, vol.Upper), diff --git a/homeassistant/components/homematic/sensor.py b/homeassistant/components/homematic/sensor.py index a8ab6c84934..401d11f70c8 100644 --- a/homeassistant/components/homematic/sensor.py +++ b/homeassistant/components/homematic/sensor.py @@ -7,7 +7,7 @@ from . import ATTR_DISCOVER_DEVICES, HMDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['homematic'] HM_STATE_HA_CAST = { 'RotaryHandleSensor': {0: 'closed', 1: 'tilted', 2: 'open'}, diff --git a/homeassistant/components/homematic/switch.py b/homeassistant/components/homematic/switch.py index 44d8599ae39..393ad09b310 100644 --- a/homeassistant/components/homematic/switch.py +++ b/homeassistant/components/homematic/switch.py @@ -8,7 +8,7 @@ from . import ATTR_DISCOVER_DEVICES, HMDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['homematic'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/homematicip_cloud/__init__.py b/homeassistant/components/homematicip_cloud/__init__.py index b257cbfc412..1330a2750ae 100644 --- a/homeassistant/components/homematicip_cloud/__init__.py +++ b/homeassistant/components/homematicip_cloud/__init__.py @@ -15,7 +15,7 @@ from .const import ( from .device import HomematicipGenericDevice # noqa: F401 from .hap import HomematicipAuth, HomematicipHAP # noqa: F401 - +REQUIREMENTS = ['homematicip==0.10.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homematicip_cloud/alarm_control_panel.py b/homeassistant/components/homematicip_cloud/alarm_control_panel.py index 6c190455be7..df0201340ed 100644 --- a/homeassistant/components/homematicip_cloud/alarm_control_panel.py +++ b/homeassistant/components/homematicip_cloud/alarm_control_panel.py @@ -10,7 +10,7 @@ from . import DOMAIN as HMIPC_DOMAIN, HMIPC_HAPID, HomematicipGenericDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['homematicip_cloud'] async def async_setup_platform( diff --git a/homeassistant/components/homematicip_cloud/binary_sensor.py b/homeassistant/components/homematicip_cloud/binary_sensor.py index d461781c721..44c17282dda 100644 --- a/homeassistant/components/homematicip_cloud/binary_sensor.py +++ b/homeassistant/components/homematicip_cloud/binary_sensor.py @@ -6,7 +6,7 @@ from homeassistant.components.binary_sensor import BinarySensorDevice from . import DOMAIN as HMIPC_DOMAIN, HMIPC_HAPID, HomematicipGenericDevice from .device import ATTR_GROUP_MEMBER_UNREACHABLE - +DEPENDENCIES = ['homematicip_cloud'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homematicip_cloud/cover.py b/homeassistant/components/homematicip_cloud/cover.py index 2faf8163166..735e8789670 100644 --- a/homeassistant/components/homematicip_cloud/cover.py +++ b/homeassistant/components/homematicip_cloud/cover.py @@ -5,7 +5,7 @@ from homeassistant.components.cover import ATTR_POSITION, CoverDevice from . import DOMAIN as HMIPC_DOMAIN, HMIPC_HAPID, HomematicipGenericDevice - +DEPENDENCIES = ['homematicip_cloud'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homematicip_cloud/light.py b/homeassistant/components/homematicip_cloud/light.py index f71ad07cbfe..f5bac66388c 100644 --- a/homeassistant/components/homematicip_cloud/light.py +++ b/homeassistant/components/homematicip_cloud/light.py @@ -7,7 +7,7 @@ from homeassistant.components.light import ( from . import DOMAIN as HMIPC_DOMAIN, HMIPC_HAPID, HomematicipGenericDevice - +DEPENDENCIES = ['homematicip_cloud'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homematicip_cloud/sensor.py b/homeassistant/components/homematicip_cloud/sensor.py index 6c9136813ab..5f345f419fa 100644 --- a/homeassistant/components/homematicip_cloud/sensor.py +++ b/homeassistant/components/homematicip_cloud/sensor.py @@ -9,7 +9,7 @@ from . import DOMAIN as HMIPC_DOMAIN, HMIPC_HAPID, HomematicipGenericDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['homematicip_cloud'] ATTR_TEMPERATURE_OFFSET = 'temperature_offset' ATTR_WIND_DIRECTION = 'wind_direction' diff --git a/homeassistant/components/homematicip_cloud/switch.py b/homeassistant/components/homematicip_cloud/switch.py index 23956a7097d..f9713cd8c00 100644 --- a/homeassistant/components/homematicip_cloud/switch.py +++ b/homeassistant/components/homematicip_cloud/switch.py @@ -6,7 +6,7 @@ from homeassistant.components.switch import SwitchDevice from . import DOMAIN as HMIPC_DOMAIN, HMIPC_HAPID, HomematicipGenericDevice from .device import ATTR_GROUP_MEMBER_UNREACHABLE - +DEPENDENCIES = ['homematicip_cloud'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homematicip_cloud/weather.py b/homeassistant/components/homematicip_cloud/weather.py index ef5aebd2320..ba3157471f9 100644 --- a/homeassistant/components/homematicip_cloud/weather.py +++ b/homeassistant/components/homematicip_cloud/weather.py @@ -7,7 +7,7 @@ from homeassistant.const import TEMP_CELSIUS from . import DOMAIN as HMIPC_DOMAIN, HMIPC_HAPID, HomematicipGenericDevice - +DEPENDENCIES = ['homematicip_cloud'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homeworks/__init__.py b/homeassistant/components/homeworks/__init__.py index 752d8908078..d0769ed25e6 100644 --- a/homeassistant/components/homeworks/__init__.py +++ b/homeassistant/components/homeworks/__init__.py @@ -12,7 +12,7 @@ from homeassistant.helpers.dispatcher import ( async_dispatcher_connect, dispatcher_send) from homeassistant.util import slugify - +REQUIREMENTS = ['pyhomeworks==0.0.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/homeworks/light.py b/homeassistant/components/homeworks/light.py index 0e9e02a6cb1..ca41dff9834 100644 --- a/homeassistant/components/homeworks/light.py +++ b/homeassistant/components/homeworks/light.py @@ -11,7 +11,7 @@ from . import ( CONF_ADDR, CONF_DIMMERS, CONF_RATE, ENTITY_SIGNAL, HOMEWORKS_CONTROLLER, HomeworksDevice) - +DEPENDENCIES = ['homeworks'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/honeywell/climate.py b/homeassistant/components/honeywell/climate.py index f8b44d400b5..7460ed6e9d0 100644 --- a/homeassistant/components/honeywell/climate.py +++ b/homeassistant/components/honeywell/climate.py @@ -15,7 +15,7 @@ from homeassistant.const import ( CONF_PASSWORD, CONF_USERNAME, TEMP_CELSIUS, TEMP_FAHRENHEIT, ATTR_TEMPERATURE, CONF_REGION) - +REQUIREMENTS = ['evohomeclient==0.3.2', 'somecomfort==0.5.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/horizon/media_player.py b/homeassistant/components/horizon/media_player.py index 7813aac785f..51168e4ef2e 100644 --- a/homeassistant/components/horizon/media_player.py +++ b/homeassistant/components/horizon/media_player.py @@ -16,7 +16,7 @@ from homeassistant.const import ( from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['horimote==0.4.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hp_ilo/sensor.py b/homeassistant/components/hp_ilo/sensor.py index e2157b6b07f..a017f0ee3e8 100644 --- a/homeassistant/components/hp_ilo/sensor.py +++ b/homeassistant/components/hp_ilo/sensor.py @@ -13,7 +13,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['python-hpilo==3.9'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/html5/notify.py b/homeassistant/components/html5/notify.py index 7a4ce9ad723..fa7bf660b79 100644 --- a/homeassistant/components/html5/notify.py +++ b/homeassistant/components/html5/notify.py @@ -24,9 +24,9 @@ from homeassistant.components.notify import ( ATTR_DATA, ATTR_TARGET, ATTR_TITLE, ATTR_TITLE_DEFAULT, DOMAIN, PLATFORM_SCHEMA, BaseNotificationService) +REQUIREMENTS = ['pywebpush==1.9.2'] - - +DEPENDENCIES = ['frontend'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/http/__init__.py b/homeassistant/components/http/__init__.py index 710c309b321..0bcf3f85ff7 100644 --- a/homeassistant/components/http/__init__.py +++ b/homeassistant/components/http/__init__.py @@ -29,7 +29,7 @@ from .real_ip import setup_real_ip from .static import CACHE_HEADERS, CachingStaticResource from .view import HomeAssistantView # noqa - +REQUIREMENTS = ['aiohttp_cors==0.7.0'] DOMAIN = 'http' diff --git a/homeassistant/components/huawei_lte/__init__.py b/homeassistant/components/huawei_lte/__init__.py index af4d78b35cc..a462b1b3072 100644 --- a/homeassistant/components/huawei_lte/__init__.py +++ b/homeassistant/components/huawei_lte/__init__.py @@ -19,7 +19,7 @@ _LOGGER = logging.getLogger(__name__) # https://github.com/quandyfactory/dicttoxml/issues/60 logging.getLogger('dicttoxml').setLevel(logging.WARNING) - +REQUIREMENTS = ['huawei-lte-api==1.1.5'] MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=10) diff --git a/homeassistant/components/huawei_lte/device_tracker.py b/homeassistant/components/huawei_lte/device_tracker.py index 5f14f7059b1..69bf42fb3fe 100644 --- a/homeassistant/components/huawei_lte/device_tracker.py +++ b/homeassistant/components/huawei_lte/device_tracker.py @@ -11,7 +11,7 @@ from homeassistant.components.device_tracker import ( from homeassistant.const import CONF_URL from ..huawei_lte import DATA_KEY, RouterData - +DEPENDENCIES = ['huawei_lte'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Optional(CONF_URL): cv.url, diff --git a/homeassistant/components/huawei_lte/notify.py b/homeassistant/components/huawei_lte/notify.py index ca13bc9e6e0..5e20a774c25 100644 --- a/homeassistant/components/huawei_lte/notify.py +++ b/homeassistant/components/huawei_lte/notify.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv from ..huawei_lte import DATA_KEY - +DEPENDENCIES = ['huawei_lte'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/huawei_lte/sensor.py b/homeassistant/components/huawei_lte/sensor.py index ba58348299b..42ad4b52f8d 100644 --- a/homeassistant/components/huawei_lte/sensor.py +++ b/homeassistant/components/huawei_lte/sensor.py @@ -16,7 +16,7 @@ from ..huawei_lte import DATA_KEY, RouterData _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['huawei_lte'] DEFAULT_NAME_TEMPLATE = 'Huawei {} {}' diff --git a/homeassistant/components/hue/__init__.py b/homeassistant/components/hue/__init__.py index ab5b5a9ef8c..8f5c27f6516 100644 --- a/homeassistant/components/hue/__init__.py +++ b/homeassistant/components/hue/__init__.py @@ -14,7 +14,7 @@ from .bridge import HueBridge # Loading the config flow file will register the flow from .config_flow import configured_hosts - +REQUIREMENTS = ['aiohue==1.9.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hue/light.py b/homeassistant/components/hue/light.py index 038901be181..0725c86bd95 100644 --- a/homeassistant/components/hue/light.py +++ b/homeassistant/components/hue/light.py @@ -16,7 +16,7 @@ from homeassistant.components.light import ( Light) from homeassistant.util import color - +DEPENDENCIES = ['hue'] SCAN_INTERVAL = timedelta(seconds=5) _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hunterdouglas_powerview/scene.py b/homeassistant/components/hunterdouglas_powerview/scene.py index e1ee269383a..7f0709aa6c1 100644 --- a/homeassistant/components/hunterdouglas_powerview/scene.py +++ b/homeassistant/components/hunterdouglas_powerview/scene.py @@ -10,7 +10,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.entity import async_generate_entity_id _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['aiopvapi==1.6.14'] ENTITY_ID_FORMAT = DOMAIN + '.{}' HUB_ADDRESS = 'address' diff --git a/homeassistant/components/hydrawise/__init__.py b/homeassistant/components/hydrawise/__init__.py index 8320dc6a462..9c7baf6db2e 100644 --- a/homeassistant/components/hydrawise/__init__.py +++ b/homeassistant/components/hydrawise/__init__.py @@ -14,7 +14,7 @@ from homeassistant.helpers.dispatcher import ( from homeassistant.helpers.entity import Entity from homeassistant.helpers.event import track_time_interval - +REQUIREMENTS = ['hydrawiser==0.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hydrawise/binary_sensor.py b/homeassistant/components/hydrawise/binary_sensor.py index 3aedcac16c1..85a51d3649e 100644 --- a/homeassistant/components/hydrawise/binary_sensor.py +++ b/homeassistant/components/hydrawise/binary_sensor.py @@ -12,7 +12,7 @@ from . import ( BINARY_SENSORS, DATA_HYDRAWISE, DEVICE_MAP, DEVICE_MAP_INDEX, HydrawiseEntity) - +DEPENDENCIES = ['hydrawise'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hydrawise/sensor.py b/homeassistant/components/hydrawise/sensor.py index 60cac1047b9..fc15a54ed60 100644 --- a/homeassistant/components/hydrawise/sensor.py +++ b/homeassistant/components/hydrawise/sensor.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv from . import ( DATA_HYDRAWISE, DEVICE_MAP, DEVICE_MAP_INDEX, SENSORS, HydrawiseEntity) - +DEPENDENCIES = ['hydrawise'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hydrawise/switch.py b/homeassistant/components/hydrawise/switch.py index e51c719e7f1..dcbd5274a62 100644 --- a/homeassistant/components/hydrawise/switch.py +++ b/homeassistant/components/hydrawise/switch.py @@ -12,7 +12,7 @@ from . import ( DEFAULT_WATERING_TIME, DEVICE_MAP, DEVICE_MAP_INDEX, SWITCHES, HydrawiseEntity) - +DEPENDENCIES = ['hydrawise'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/hydroquebec/sensor.py b/homeassistant/components/hydroquebec/sensor.py index 843fc2a96b3..5f0fd9e01ad 100644 --- a/homeassistant/components/hydroquebec/sensor.py +++ b/homeassistant/components/hydroquebec/sensor.py @@ -20,7 +20,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyhydroquebec==2.2.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ialarm/alarm_control_panel.py b/homeassistant/components/ialarm/alarm_control_panel.py index 9d8cd76528a..8152c2496e6 100644 --- a/homeassistant/components/ialarm/alarm_control_panel.py +++ b/homeassistant/components/ialarm/alarm_control_panel.py @@ -12,7 +12,7 @@ from homeassistant.const import ( STATE_ALARM_TRIGGERED) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyialarm==0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/icloud/device_tracker.py b/homeassistant/components/icloud/device_tracker.py index 4fe6ed6a505..1d0e0d2fafb 100644 --- a/homeassistant/components/icloud/device_tracker.py +++ b/homeassistant/components/icloud/device_tracker.py @@ -17,7 +17,7 @@ from homeassistant.util.location import distance _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pyicloud==0.9.1'] CONF_ACCOUNTNAME = 'account_name' CONF_MAX_INTERVAL = 'max_interval' diff --git a/homeassistant/components/idteck_prox/__init__.py b/homeassistant/components/idteck_prox/__init__.py index 56814a1ea55..3de7aa7cc8c 100644 --- a/homeassistant/components/idteck_prox/__init__.py +++ b/homeassistant/components/idteck_prox/__init__.py @@ -7,7 +7,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.const import ( CONF_HOST, CONF_PORT, CONF_NAME, EVENT_HOMEASSISTANT_STOP) - +REQUIREMENTS = ['rfk101py==0.0.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ifttt/__init__.py b/homeassistant/components/ifttt/__init__.py index 47439fd394f..bad3984ea5b 100644 --- a/homeassistant/components/ifttt/__init__.py +++ b/homeassistant/components/ifttt/__init__.py @@ -9,8 +9,8 @@ from homeassistant.const import CONF_WEBHOOK_ID from homeassistant.helpers import config_entry_flow import homeassistant.helpers.config_validation as cv - - +REQUIREMENTS = ['pyfttt==0.3'] +DEPENDENCIES = ['webhook'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ifttt/alarm_control_panel.py b/homeassistant/components/ifttt/alarm_control_panel.py index 332beb7a081..3f806173196 100644 --- a/homeassistant/components/ifttt/alarm_control_panel.py +++ b/homeassistant/components/ifttt/alarm_control_panel.py @@ -15,7 +15,7 @@ import homeassistant.helpers.config_validation as cv from . import ATTR_EVENT, DOMAIN as IFTTT_DOMAIN, SERVICE_TRIGGER - +DEPENDENCIES = ['ifttt'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/iglo/light.py b/homeassistant/components/iglo/light.py index 44b951e39a8..6851141efb4 100644 --- a/homeassistant/components/iglo/light.py +++ b/homeassistant/components/iglo/light.py @@ -12,7 +12,7 @@ from homeassistant.const import CONF_HOST, CONF_NAME, CONF_PORT import homeassistant.helpers.config_validation as cv import homeassistant.util.color as color_util - +REQUIREMENTS = ['iglo==1.2.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ihc/__init__.py b/homeassistant/components/ihc/__init__.py index 2160c1d5255..102acd82551 100644 --- a/homeassistant/components/ihc/__init__.py +++ b/homeassistant/components/ihc/__init__.py @@ -21,7 +21,7 @@ from .const import ( SERVICE_SET_RUNTIME_VALUE_FLOAT, SERVICE_SET_RUNTIME_VALUE_INT) from .util import async_pulse - +REQUIREMENTS = ['ihcsdk==2.3.0', 'defusedxml==0.5.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ihc/binary_sensor.py b/homeassistant/components/ihc/binary_sensor.py index aafd54fe695..69e3e1685af 100644 --- a/homeassistant/components/ihc/binary_sensor.py +++ b/homeassistant/components/ihc/binary_sensor.py @@ -6,7 +6,7 @@ from . import IHC_CONTROLLER, IHC_DATA, IHC_INFO from .const import CONF_INVERTING from .ihcdevice import IHCDevice - +DEPENDENCIES = ['ihc'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/ihc/light.py b/homeassistant/components/ihc/light.py index 94057a07c24..ad6d0fb6511 100644 --- a/homeassistant/components/ihc/light.py +++ b/homeassistant/components/ihc/light.py @@ -9,7 +9,7 @@ from .const import CONF_DIMMABLE, CONF_OFF_ID, CONF_ON_ID from .ihcdevice import IHCDevice from .util import async_pulse, async_set_bool, async_set_int - +DEPENDENCIES = ['ihc'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ihc/sensor.py b/homeassistant/components/ihc/sensor.py index 5b6d6f536b7..fd1f2cee53a 100644 --- a/homeassistant/components/ihc/sensor.py +++ b/homeassistant/components/ihc/sensor.py @@ -5,7 +5,7 @@ from homeassistant.helpers.entity import Entity from . import IHC_CONTROLLER, IHC_DATA, IHC_INFO from .ihcdevice import IHCDevice - +DEPENDENCIES = ['ihc'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/ihc/switch.py b/homeassistant/components/ihc/switch.py index d3885f32dd2..e2189492b8f 100644 --- a/homeassistant/components/ihc/switch.py +++ b/homeassistant/components/ihc/switch.py @@ -6,7 +6,7 @@ from .const import CONF_OFF_ID, CONF_ON_ID from .ihcdevice import IHCDevice from .util import async_pulse, async_set_bool - +DEPENDENCIES = ['ihc'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/image_processing/__init__.py b/homeassistant/components/image_processing/__init__.py index cfa087a2c30..e5193985629 100644 --- a/homeassistant/components/image_processing/__init__.py +++ b/homeassistant/components/image_processing/__init__.py @@ -17,7 +17,7 @@ from homeassistant.util.async_ import run_callback_threadsafe _LOGGER = logging.getLogger(__name__) DOMAIN = 'image_processing' - +DEPENDENCIES = ['camera'] SCAN_INTERVAL = timedelta(seconds=10) diff --git a/homeassistant/components/imap/sensor.py b/homeassistant/components/imap/sensor.py index 3dfcc8dae10..5ff23eb8e5d 100644 --- a/homeassistant/components/imap/sensor.py +++ b/homeassistant/components/imap/sensor.py @@ -15,7 +15,7 @@ from homeassistant.helpers.entity import Entity _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['aioimaplib==0.7.15'] CONF_SERVER = 'server' CONF_FOLDER = 'folder' diff --git a/homeassistant/components/influxdb/__init__.py b/homeassistant/components/influxdb/__init__.py index 58ea445ebc8..551996983c8 100644 --- a/homeassistant/components/influxdb/__init__.py +++ b/homeassistant/components/influxdb/__init__.py @@ -18,7 +18,7 @@ from homeassistant.helpers import state as state_helper, event as event_helper import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity_values import EntityValues - +REQUIREMENTS = ['influxdb==5.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/influxdb/sensor.py b/homeassistant/components/influxdb/sensor.py index 671faa18c0a..3bec7e3c657 100644 --- a/homeassistant/components/influxdb/sensor.py +++ b/homeassistant/components/influxdb/sensor.py @@ -18,7 +18,7 @@ from . import CONF_DB_NAME _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['influxdb==5.2.0'] DEFAULT_HOST = 'localhost' DEFAULT_PORT = 8086 diff --git a/homeassistant/components/insteon/__init__.py b/homeassistant/components/insteon/__init__.py index 83b45b4ee54..a462ac0f63e 100644 --- a/homeassistant/components/insteon/__init__.py +++ b/homeassistant/components/insteon/__init__.py @@ -13,7 +13,7 @@ from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['insteonplm==0.15.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/insteon/binary_sensor.py b/homeassistant/components/insteon/binary_sensor.py index 1d6591fd8fa..6f1e5675639 100644 --- a/homeassistant/components/insteon/binary_sensor.py +++ b/homeassistant/components/insteon/binary_sensor.py @@ -7,7 +7,7 @@ from . import InsteonEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['insteon'] SENSOR_TYPES = { 'openClosedSensor': 'opening', diff --git a/homeassistant/components/insteon/cover.py b/homeassistant/components/insteon/cover.py index 75dda4929e3..1bb316152a9 100644 --- a/homeassistant/components/insteon/cover.py +++ b/homeassistant/components/insteon/cover.py @@ -10,7 +10,7 @@ from . import InsteonEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['insteon'] SUPPORTED_FEATURES = SUPPORT_OPEN | SUPPORT_CLOSE | SUPPORT_SET_POSITION diff --git a/homeassistant/components/insteon/fan.py b/homeassistant/components/insteon/fan.py index 29171b2ac6e..26a56d6df98 100644 --- a/homeassistant/components/insteon/fan.py +++ b/homeassistant/components/insteon/fan.py @@ -10,7 +10,7 @@ from . import InsteonEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['insteon'] SPEED_TO_HEX = { SPEED_OFF: 0x00, diff --git a/homeassistant/components/insteon/light.py b/homeassistant/components/insteon/light.py index 30bb494a28f..676c053325c 100644 --- a/homeassistant/components/insteon/light.py +++ b/homeassistant/components/insteon/light.py @@ -8,7 +8,7 @@ from . import InsteonEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['insteon'] MAX_BRIGHTNESS = 255 diff --git a/homeassistant/components/insteon/sensor.py b/homeassistant/components/insteon/sensor.py index 765d9a78334..edea87e1f73 100644 --- a/homeassistant/components/insteon/sensor.py +++ b/homeassistant/components/insteon/sensor.py @@ -5,7 +5,7 @@ from homeassistant.helpers.entity import Entity from . import InsteonEntity - +DEPENDENCIES = ['insteon'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/insteon/switch.py b/homeassistant/components/insteon/switch.py index d02bb060a21..4fdcdb20bb2 100644 --- a/homeassistant/components/insteon/switch.py +++ b/homeassistant/components/insteon/switch.py @@ -5,7 +5,7 @@ from homeassistant.components.switch import SwitchDevice from . import InsteonEntity - +DEPENDENCIES = ['insteon'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ios/__init__.py b/homeassistant/components/ios/__init__.py index 20e203f1f82..cc8bd62293a 100644 --- a/homeassistant/components/ios/__init__.py +++ b/homeassistant/components/ios/__init__.py @@ -17,7 +17,7 @@ _LOGGER = logging.getLogger(__name__) DOMAIN = 'ios' - +DEPENDENCIES = ['device_tracker', 'http', 'zeroconf'] CONF_PUSH = 'push' CONF_PUSH_CATEGORIES = 'categories' diff --git a/homeassistant/components/ios/notify.py b/homeassistant/components/ios/notify.py index 9264ebae964..1f8aade4ec1 100644 --- a/homeassistant/components/ios/notify.py +++ b/homeassistant/components/ios/notify.py @@ -14,7 +14,7 @@ _LOGGER = logging.getLogger(__name__) PUSH_URL = "https://ios-push.home-assistant.io/push" - +DEPENDENCIES = ["ios"] # pylint: disable=invalid-name diff --git a/homeassistant/components/ios/sensor.py b/homeassistant/components/ios/sensor.py index 4003cb18cbd..404b313368c 100644 --- a/homeassistant/components/ios/sensor.py +++ b/homeassistant/components/ios/sensor.py @@ -3,7 +3,7 @@ from homeassistant.components import ios from homeassistant.helpers.entity import Entity from homeassistant.helpers.icon import icon_for_battery_level - +DEPENDENCIES = ['ios'] SENSOR_TYPES = { 'level': ['Battery Level', '%'], diff --git a/homeassistant/components/iota/__init__.py b/homeassistant/components/iota/__init__.py index a7141d23d93..e28de61aad0 100644 --- a/homeassistant/components/iota/__init__.py +++ b/homeassistant/components/iota/__init__.py @@ -8,7 +8,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.discovery import load_platform from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pyota==2.0.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/iota/sensor.py b/homeassistant/components/iota/sensor.py index 22dcded9921..2955828aff5 100644 --- a/homeassistant/components/iota/sensor.py +++ b/homeassistant/components/iota/sensor.py @@ -15,7 +15,7 @@ CONF_IRI = 'iri' CONF_SEED = 'seed' CONF_TESTNET = 'testnet' - +DEPENDENCIES = ['iota'] SCAN_INTERVAL = timedelta(minutes=3) diff --git a/homeassistant/components/iperf3/__init__.py b/homeassistant/components/iperf3/__init__.py index ba5af03f8ce..01ac2194f35 100644 --- a/homeassistant/components/iperf3/__init__.py +++ b/homeassistant/components/iperf3/__init__.py @@ -12,7 +12,7 @@ from homeassistant.helpers.discovery import async_load_platform from homeassistant.helpers.dispatcher import dispatcher_send from homeassistant.helpers.event import async_track_time_interval - +REQUIREMENTS = ['iperf3==0.1.10'] DOMAIN = 'iperf3' DATA_UPDATED = '{}_data_updated'.format(DOMAIN) diff --git a/homeassistant/components/iperf3/sensor.py b/homeassistant/components/iperf3/sensor.py index 85916e0e54c..db9aafcdf4b 100644 --- a/homeassistant/components/iperf3/sensor.py +++ b/homeassistant/components/iperf3/sensor.py @@ -6,7 +6,7 @@ from homeassistant.helpers.restore_state import RestoreEntity from . import ATTR_VERSION, DATA_UPDATED, DOMAIN as IPERF3_DOMAIN, SENSOR_TYPES - +DEPENDENCIES = ['iperf3'] ATTRIBUTION = 'Data retrieved using Iperf3' diff --git a/homeassistant/components/ipma/weather.py b/homeassistant/components/ipma/weather.py index 0e46199d815..7122957ad12 100644 --- a/homeassistant/components/ipma/weather.py +++ b/homeassistant/components/ipma/weather.py @@ -15,7 +15,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers import config_validation as cv from homeassistant.util import Throttle - +REQUIREMENTS = ['pyipma==1.2.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/irish_rail_transport/sensor.py b/homeassistant/components/irish_rail_transport/sensor.py index 8a4db9a2ea2..e17ecfde59d 100644 --- a/homeassistant/components/irish_rail_transport/sensor.py +++ b/homeassistant/components/irish_rail_transport/sensor.py @@ -9,7 +9,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import CONF_NAME, ATTR_ATTRIBUTION from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pyirishrail==0.0.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/islamic_prayer_times/sensor.py b/homeassistant/components/islamic_prayer_times/sensor.py index 15595bd8517..9efbc237e30 100644 --- a/homeassistant/components/islamic_prayer_times/sensor.py +++ b/homeassistant/components/islamic_prayer_times/sensor.py @@ -11,7 +11,7 @@ from homeassistant.const import DEVICE_CLASS_TIMESTAMP from homeassistant.helpers.entity import Entity from homeassistant.helpers.event import async_track_point_in_time - +REQUIREMENTS = ['prayer_times_calculator==0.0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/iss/binary_sensor.py b/homeassistant/components/iss/binary_sensor.py index 1761f595f59..381bc167918 100644 --- a/homeassistant/components/iss/binary_sensor.py +++ b/homeassistant/components/iss/binary_sensor.py @@ -12,7 +12,7 @@ from homeassistant.const import ( CONF_NAME, ATTR_LONGITUDE, ATTR_LATITUDE, CONF_SHOW_ON_MAP) from homeassistant.util import Throttle - +REQUIREMENTS = ['pyiss==1.0.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/isy994/__init__.py b/homeassistant/components/isy994/__init__.py index 321b2317836..4eaa71deece 100644 --- a/homeassistant/components/isy994/__init__.py +++ b/homeassistant/components/isy994/__init__.py @@ -12,7 +12,7 @@ from homeassistant.helpers import config_validation as cv, discovery from homeassistant.helpers.entity import Entity from homeassistant.helpers.typing import ConfigType, Dict - +REQUIREMENTS = ['PyISY==1.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/itach/remote.py b/homeassistant/components/itach/remote.py index a0794edcdd1..beb773838fb 100644 --- a/homeassistant/components/itach/remote.py +++ b/homeassistant/components/itach/remote.py @@ -10,7 +10,7 @@ from homeassistant.const import ( CONF_DEVICES) from homeassistant.components.remote import PLATFORM_SCHEMA - +REQUIREMENTS = ['pyitachip2ir==0.0.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/jewish_calendar/sensor.py b/homeassistant/components/jewish_calendar/sensor.py index 37c625bf1ab..478bbed98fa 100644 --- a/homeassistant/components/jewish_calendar/sensor.py +++ b/homeassistant/components/jewish_calendar/sensor.py @@ -11,7 +11,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.helpers.sun import get_astral_event_date import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['hdate==0.8.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/joaoapps_join/__init__.py b/homeassistant/components/joaoapps_join/__init__.py index 8d438b4919a..f1371deed2b 100644 --- a/homeassistant/components/joaoapps_join/__init__.py +++ b/homeassistant/components/joaoapps_join/__init__.py @@ -6,7 +6,7 @@ import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant.const import CONF_NAME, CONF_API_KEY - +REQUIREMENTS = ['python-join-api==0.0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/joaoapps_join/notify.py b/homeassistant/components/joaoapps_join/notify.py index ca73d46bd04..0137520049d 100644 --- a/homeassistant/components/joaoapps_join/notify.py +++ b/homeassistant/components/joaoapps_join/notify.py @@ -7,7 +7,7 @@ from homeassistant.components.notify import ( from homeassistant.const import CONF_API_KEY import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['python-join-api==0.0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/juicenet/__init__.py b/homeassistant/components/juicenet/__init__.py index 056b202d346..f62331d1502 100644 --- a/homeassistant/components/juicenet/__init__.py +++ b/homeassistant/components/juicenet/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import CONF_ACCESS_TOKEN from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['python-juicenet==0.0.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/juicenet/sensor.py b/homeassistant/components/juicenet/sensor.py index d480501fb99..6b55e539547 100644 --- a/homeassistant/components/juicenet/sensor.py +++ b/homeassistant/components/juicenet/sensor.py @@ -8,7 +8,7 @@ from . import DOMAIN, JuicenetDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['juicenet'] SENSOR_TYPES = { 'status': ['Charging Status', None], diff --git a/homeassistant/components/keenetic_ndms2/device_tracker.py b/homeassistant/components/keenetic_ndms2/device_tracker.py index 22549b0f68d..f873507112d 100644 --- a/homeassistant/components/keenetic_ndms2/device_tracker.py +++ b/homeassistant/components/keenetic_ndms2/device_tracker.py @@ -10,7 +10,7 @@ from homeassistant.const import ( CONF_HOST, CONF_PORT, CONF_PASSWORD, CONF_USERNAME ) - +REQUIREMENTS = ['ndms2_client==0.0.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/keyboard/__init__.py b/homeassistant/components/keyboard/__init__.py index 54db68578c9..44accca2f56 100644 --- a/homeassistant/components/keyboard/__init__.py +++ b/homeassistant/components/keyboard/__init__.py @@ -6,7 +6,7 @@ from homeassistant.const import ( SERVICE_MEDIA_PREVIOUS_TRACK, SERVICE_VOLUME_DOWN, SERVICE_VOLUME_MUTE, SERVICE_VOLUME_UP) - +REQUIREMENTS = ['pyuserinput==0.1.11'] DOMAIN = 'keyboard' diff --git a/homeassistant/components/keyboard_remote/__init__.py b/homeassistant/components/keyboard_remote/__init__.py index 7abaeccf492..e786fe458a8 100644 --- a/homeassistant/components/keyboard_remote/__init__.py +++ b/homeassistant/components/keyboard_remote/__init__.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.const import ( EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP) - +REQUIREMENTS = ['evdev==0.6.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/kira/__init__.py b/homeassistant/components/kira/__init__.py index 422c5ca2dca..d60d8e0cfeb 100644 --- a/homeassistant/components/kira/__init__.py +++ b/homeassistant/components/kira/__init__.py @@ -12,7 +12,7 @@ from homeassistant.const import ( from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pykira==0.1.1'] DOMAIN = 'kira' diff --git a/homeassistant/components/kiwi/lock.py b/homeassistant/components/kiwi/lock.py index 303b35fe8d1..0b5806425d9 100644 --- a/homeassistant/components/kiwi/lock.py +++ b/homeassistant/components/kiwi/lock.py @@ -11,7 +11,7 @@ from homeassistant.const import ( from homeassistant.helpers.event import async_call_later from homeassistant.core import callback - +REQUIREMENTS = ['kiwiki-client==0.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/knx/__init__.py b/homeassistant/components/knx/__init__.py index b39cce0f393..ea5b18b7ede 100644 --- a/homeassistant/components/knx/__init__.py +++ b/homeassistant/components/knx/__init__.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.event import async_track_state_change from homeassistant.helpers.script import Script - +REQUIREMENTS = ['xknx==0.10.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/knx/binary_sensor.py b/homeassistant/components/knx/binary_sensor.py index b636894fcf4..8ee21e24c5e 100644 --- a/homeassistant/components/knx/binary_sensor.py +++ b/homeassistant/components/knx/binary_sensor.py @@ -22,7 +22,7 @@ CONF_RESET_AFTER = 'reset_after' CONF__ACTION = 'turn_off_action' DEFAULT_NAME = 'KNX Binary Sensor' - +DEPENDENCIES = ['knx'] AUTOMATION_SCHEMA = vol.Schema({ vol.Optional(CONF_HOOK, default=CONF_DEFAULT_HOOK): cv.string, diff --git a/homeassistant/components/knx/climate.py b/homeassistant/components/knx/climate.py index 6b75c6ab713..e11e5449326 100644 --- a/homeassistant/components/knx/climate.py +++ b/homeassistant/components/knx/climate.py @@ -39,7 +39,7 @@ DEFAULT_NAME = 'KNX Climate' DEFAULT_SETPOINT_SHIFT_STEP = 0.5 DEFAULT_SETPOINT_SHIFT_MAX = 6 DEFAULT_SETPOINT_SHIFT_MIN = -6 - +DEPENDENCIES = ['knx'] # Map KNX operation modes to HA modes. This list might not be full. OPERATION_MODES = { diff --git a/homeassistant/components/knx/cover.py b/homeassistant/components/knx/cover.py index 4a33af16365..b2b287d1e87 100644 --- a/homeassistant/components/knx/cover.py +++ b/homeassistant/components/knx/cover.py @@ -25,7 +25,7 @@ CONF_INVERT_ANGLE = 'invert_angle' DEFAULT_TRAVEL_TIME = 25 DEFAULT_NAME = 'KNX Cover' - +DEPENDENCIES = ['knx'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string, diff --git a/homeassistant/components/knx/light.py b/homeassistant/components/knx/light.py index 24b5d02d3ca..cf59f1fc135 100644 --- a/homeassistant/components/knx/light.py +++ b/homeassistant/components/knx/light.py @@ -30,7 +30,7 @@ DEFAULT_BRIGHTNESS = 255 DEFAULT_COLOR_TEMP_MODE = 'absolute' DEFAULT_MIN_KELVIN = 2700 # 370 mireds DEFAULT_MAX_KELVIN = 6000 # 166 mireds - +DEPENDENCIES = ['knx'] class ColorTempModes(Enum): diff --git a/homeassistant/components/knx/notify.py b/homeassistant/components/knx/notify.py index 8342fc10632..742252d1874 100644 --- a/homeassistant/components/knx/notify.py +++ b/homeassistant/components/knx/notify.py @@ -11,7 +11,7 @@ from . import ATTR_DISCOVER_DEVICES, DATA_KNX DEFAULT_NAME = 'KNX Notify' - +DEPENDENCIES = ['knx'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_ADDRESS): cv.string, diff --git a/homeassistant/components/knx/scene.py b/homeassistant/components/knx/scene.py index 271e9efb22c..4bf186c28ff 100644 --- a/homeassistant/components/knx/scene.py +++ b/homeassistant/components/knx/scene.py @@ -11,7 +11,7 @@ from . import ATTR_DISCOVER_DEVICES, DATA_KNX CONF_SCENE_NUMBER = 'scene_number' DEFAULT_NAME = 'KNX SCENE' - +DEPENDENCIES = ['knx'] PLATFORM_SCHEMA = vol.Schema({ vol.Required(CONF_PLATFORM): 'knx', diff --git a/homeassistant/components/knx/sensor.py b/homeassistant/components/knx/sensor.py index cfaf8bd91f8..7ddafe53be4 100644 --- a/homeassistant/components/knx/sensor.py +++ b/homeassistant/components/knx/sensor.py @@ -10,7 +10,7 @@ from homeassistant.helpers.entity import Entity from . import ATTR_DISCOVER_DEVICES, DATA_KNX DEFAULT_NAME = 'KNX Sensor' - +DEPENDENCIES = ['knx'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_ADDRESS): cv.string, diff --git a/homeassistant/components/knx/switch.py b/homeassistant/components/knx/switch.py index 29a98d28807..e3beff39677 100644 --- a/homeassistant/components/knx/switch.py +++ b/homeassistant/components/knx/switch.py @@ -11,7 +11,7 @@ from . import ATTR_DISCOVER_DEVICES, DATA_KNX CONF_STATE_ADDRESS = 'state_address' DEFAULT_NAME = 'KNX Switch' - +DEPENDENCIES = ['knx'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_ADDRESS): cv.string, diff --git a/homeassistant/components/kodi/media_player.py b/homeassistant/components/kodi/media_player.py index 3f2974281fe..81c93dba2ac 100644 --- a/homeassistant/components/kodi/media_player.py +++ b/homeassistant/components/kodi/media_player.py @@ -31,7 +31,7 @@ from homeassistant.helpers.template import Template from homeassistant.util.yaml import dump import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['jsonrpc-async==0.6', 'jsonrpc-websocket==0.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/kodi/notify.py b/homeassistant/components/kodi/notify.py index 8d9bfbe8fbe..f6ee2c47b96 100644 --- a/homeassistant/components/kodi/notify.py +++ b/homeassistant/components/kodi/notify.py @@ -14,7 +14,7 @@ from homeassistant.components.notify import ( ATTR_DATA, ATTR_TITLE, ATTR_TITLE_DEFAULT, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['jsonrpc-async==0.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/konnected/__init__.py b/homeassistant/components/konnected/__init__.py index 50c107b12ee..276e395817c 100644 --- a/homeassistant/components/konnected/__init__.py +++ b/homeassistant/components/konnected/__init__.py @@ -32,7 +32,7 @@ from .handlers import HANDLERS _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['konnected==0.1.5'] _BINARY_SENSOR_SCHEMA = vol.All( vol.Schema({ @@ -96,7 +96,7 @@ CONFIG_SCHEMA = vol.Schema( extra=vol.ALLOW_EXTRA, ) - +DEPENDENCIES = ['http'] async def async_setup(hass, config): diff --git a/homeassistant/components/konnected/binary_sensor.py b/homeassistant/components/konnected/binary_sensor.py index 7c884f90f5e..1fbfbea1861 100644 --- a/homeassistant/components/konnected/binary_sensor.py +++ b/homeassistant/components/konnected/binary_sensor.py @@ -12,7 +12,7 @@ from . import DOMAIN as KONNECTED_DOMAIN, PIN_TO_ZONE, SIGNAL_SENSOR_UPDATE _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['konnected'] async def async_setup_platform( diff --git a/homeassistant/components/konnected/sensor.py b/homeassistant/components/konnected/sensor.py index 43d9de96214..a48d1a58619 100644 --- a/homeassistant/components/konnected/sensor.py +++ b/homeassistant/components/konnected/sensor.py @@ -13,7 +13,7 @@ from .const import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['konnected'] SENSOR_TYPES = { DEVICE_CLASS_TEMPERATURE: ['Temperature', TEMP_CELSIUS], diff --git a/homeassistant/components/konnected/switch.py b/homeassistant/components/konnected/switch.py index 3d8d2a88067..3db602215b9 100644 --- a/homeassistant/components/konnected/switch.py +++ b/homeassistant/components/konnected/switch.py @@ -11,7 +11,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['konnected'] async def async_setup_platform( diff --git a/homeassistant/components/kwb/sensor.py b/homeassistant/components/kwb/sensor.py index 08292377a60..bad0ea3cded 100644 --- a/homeassistant/components/kwb/sensor.py +++ b/homeassistant/components/kwb/sensor.py @@ -9,7 +9,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.components.sensor import PLATFORM_SCHEMA import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pykwb==0.0.8'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/lacrosse/sensor.py b/homeassistant/components/lacrosse/sensor.py index 4b5e000708f..9240343a5e3 100644 --- a/homeassistant/components/lacrosse/sensor.py +++ b/homeassistant/components/lacrosse/sensor.py @@ -14,7 +14,7 @@ from homeassistant.helpers.entity import Entity, async_generate_entity_id from homeassistant.helpers.event import async_track_point_in_utc_time from homeassistant.util import dt as dt_util - +REQUIREMENTS = ['pylacrosse==0.3.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/lametric/__init__.py b/homeassistant/components/lametric/__init__.py index bcd8aec4b90..0c3c8b08dd7 100644 --- a/homeassistant/components/lametric/__init__.py +++ b/homeassistant/components/lametric/__init__.py @@ -5,7 +5,7 @@ import voluptuous as vol import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['lmnotify==0.0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/lametric/notify.py b/homeassistant/components/lametric/notify.py index 7c7ab711e70..358bb056b00 100644 --- a/homeassistant/components/lametric/notify.py +++ b/homeassistant/components/lametric/notify.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv from . import DOMAIN as LAMETRIC_DOMAIN - +REQUIREMENTS = ['lmnotify==0.0.4'] _LOGGER = logging.getLogger(__name__) @@ -21,7 +21,7 @@ CONF_CYCLES = 'cycles' CONF_LIFETIME = 'lifetime' CONF_PRIORITY = 'priority' - +DEPENDENCIES = ['lametric'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Optional(CONF_ICON, default='a7956'): cv.string, diff --git a/homeassistant/components/lastfm/sensor.py b/homeassistant/components/lastfm/sensor.py index 0dad1ac7c6c..e4e28eff4f1 100644 --- a/homeassistant/components/lastfm/sensor.py +++ b/homeassistant/components/lastfm/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import CONF_API_KEY, ATTR_ATTRIBUTION import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pylast==3.1.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/launch_library/sensor.py b/homeassistant/components/launch_library/sensor.py index 0d5bc2b764a..4b42ddba268 100644 --- a/homeassistant/components/launch_library/sensor.py +++ b/homeassistant/components/launch_library/sensor.py @@ -10,7 +10,7 @@ from homeassistant.const import ATTR_ATTRIBUTION, CONF_NAME from homeassistant.helpers.entity import Entity from homeassistant.helpers.aiohttp_client import async_get_clientsession - +REQUIREMENTS = ['pylaunches==0.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/lcn/__init__.py b/homeassistant/components/lcn/__init__.py index 018a84f7156..44f69c261b9 100644 --- a/homeassistant/components/lcn/__init__.py +++ b/homeassistant/components/lcn/__init__.py @@ -20,7 +20,7 @@ from .const import ( _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pypck==0.5.9'] def has_unique_connection_names(connections): diff --git a/homeassistant/components/lcn/binary_sensor.py b/homeassistant/components/lcn/binary_sensor.py index 974572dbc2a..0ffa2e50d8b 100755 --- a/homeassistant/components/lcn/binary_sensor.py +++ b/homeassistant/components/lcn/binary_sensor.py @@ -6,7 +6,7 @@ from . import LcnDevice, get_connection from .const import ( BINSENSOR_PORTS, CONF_CONNECTIONS, CONF_SOURCE, DATA_LCN, SETPOINTS) - +DEPENDENCIES = ['lcn'] async def async_setup_platform(hass, hass_config, async_add_entities, diff --git a/homeassistant/components/lcn/cover.py b/homeassistant/components/lcn/cover.py index 8172303dfac..a32ff7c23f4 100755 --- a/homeassistant/components/lcn/cover.py +++ b/homeassistant/components/lcn/cover.py @@ -5,7 +5,7 @@ from homeassistant.const import CONF_ADDRESS from . import LcnDevice, get_connection from .const import CONF_CONNECTIONS, CONF_MOTOR, DATA_LCN - +DEPENDENCIES = ['lcn'] async def async_setup_platform(hass, hass_config, async_add_entities, diff --git a/homeassistant/components/lcn/light.py b/homeassistant/components/lcn/light.py index f21f2c8c3ad..00b78259354 100644 --- a/homeassistant/components/lcn/light.py +++ b/homeassistant/components/lcn/light.py @@ -9,7 +9,7 @@ from .const import ( CONF_CONNECTIONS, CONF_DIMMABLE, CONF_OUTPUT, CONF_TRANSITION, DATA_LCN, OUTPUT_PORTS) - +DEPENDENCIES = ['lcn'] async def async_setup_platform( diff --git a/homeassistant/components/lcn/sensor.py b/homeassistant/components/lcn/sensor.py index 87bab240e5f..5e50d092ada 100755 --- a/homeassistant/components/lcn/sensor.py +++ b/homeassistant/components/lcn/sensor.py @@ -6,7 +6,7 @@ from .const import ( CONF_CONNECTIONS, CONF_SOURCE, DATA_LCN, LED_PORTS, S0_INPUTS, SETPOINTS, THRESHOLDS, VARIABLES) - +DEPENDENCIES = ['lcn'] async def async_setup_platform(hass, hass_config, async_add_entities, diff --git a/homeassistant/components/lcn/switch.py b/homeassistant/components/lcn/switch.py index fcfaef1c64b..7c375f4a598 100755 --- a/homeassistant/components/lcn/switch.py +++ b/homeassistant/components/lcn/switch.py @@ -5,7 +5,7 @@ from homeassistant.const import CONF_ADDRESS from . import LcnDevice, get_connection from .const import CONF_CONNECTIONS, CONF_OUTPUT, DATA_LCN, OUTPUT_PORTS - +DEPENDENCIES = ['lcn'] async def async_setup_platform(hass, hass_config, async_add_entities, diff --git a/homeassistant/components/lg_netcast/media_player.py b/homeassistant/components/lg_netcast/media_player.py index 691bdb3cc07..12fee5fae96 100644 --- a/homeassistant/components/lg_netcast/media_player.py +++ b/homeassistant/components/lg_netcast/media_player.py @@ -17,7 +17,7 @@ from homeassistant.const import ( STATE_PLAYING) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pylgnetcast-homeassistant==0.2.0.dev0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/lg_soundbar/media_player.py b/homeassistant/components/lg_soundbar/media_player.py index 305c3a74f9a..2e2481a462b 100644 --- a/homeassistant/components/lg_soundbar/media_player.py +++ b/homeassistant/components/lg_soundbar/media_player.py @@ -9,7 +9,7 @@ from homeassistant.components.media_player.const import ( from homeassistant.const import STATE_ON - +REQUIREMENTS = ['temescal==0.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/lifx/__init__.py b/homeassistant/components/lifx/__init__.py index d2f9e4cf439..82802bab4af 100644 --- a/homeassistant/components/lifx/__init__.py +++ b/homeassistant/components/lifx/__init__.py @@ -8,7 +8,7 @@ from homeassistant.helpers import config_entry_flow from homeassistant.components.light import DOMAIN as LIGHT_DOMAIN DOMAIN = 'lifx' - +REQUIREMENTS = ['aiolifx==0.6.7'] CONF_SERVER = 'server' CONF_BROADCAST = 'broadcast' diff --git a/homeassistant/components/lifx/light.py b/homeassistant/components/lifx/light.py index eb5699aaf9d..014ca9ae6c8 100644 --- a/homeassistant/components/lifx/light.py +++ b/homeassistant/components/lifx/light.py @@ -30,8 +30,8 @@ from . import ( _LOGGER = logging.getLogger(__name__) - - +DEPENDENCIES = ['lifx'] +REQUIREMENTS = ['aiolifx_effects==0.2.1'] SCAN_INTERVAL = timedelta(seconds=10) diff --git a/homeassistant/components/lifx_legacy/light.py b/homeassistant/components/lifx_legacy/light.py index 1c4e66cf7f7..6c5f68937f8 100644 --- a/homeassistant/components/lifx_legacy/light.py +++ b/homeassistant/components/lifx_legacy/light.py @@ -22,7 +22,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['liffylights==0.9.4'] BYTE_MAX = 255 diff --git a/homeassistant/components/light/__init__.py b/homeassistant/components/light/__init__.py index 4971cd257c6..db2e9ce0197 100644 --- a/homeassistant/components/light/__init__.py +++ b/homeassistant/components/light/__init__.py @@ -24,7 +24,7 @@ from homeassistant.loader import bind_hass import homeassistant.util.color as color_util DOMAIN = 'light' - +DEPENDENCIES = ['group'] SCAN_INTERVAL = timedelta(seconds=30) GROUP_NAME_ALL_LIGHTS = 'all lights' diff --git a/homeassistant/components/lightwave/__init__.py b/homeassistant/components/lightwave/__init__.py index 54407ade742..f6e11352265 100644 --- a/homeassistant/components/lightwave/__init__.py +++ b/homeassistant/components/lightwave/__init__.py @@ -5,7 +5,7 @@ from homeassistant.const import (CONF_HOST, CONF_LIGHTS, CONF_NAME, CONF_SWITCHES) from homeassistant.helpers.discovery import async_load_platform - +REQUIREMENTS = ['lightwave==0.15'] LIGHTWAVE_LINK = 'lightwave_link' diff --git a/homeassistant/components/lightwave/light.py b/homeassistant/components/lightwave/light.py index 54e5f9672fd..f22533d2548 100644 --- a/homeassistant/components/lightwave/light.py +++ b/homeassistant/components/lightwave/light.py @@ -5,7 +5,7 @@ from homeassistant.const import CONF_NAME from . import LIGHTWAVE_LINK - +DEPENDENCIES = ['lightwave'] MAX_BRIGHTNESS = 255 diff --git a/homeassistant/components/lightwave/switch.py b/homeassistant/components/lightwave/switch.py index d4b27eef880..dfa93b4b151 100644 --- a/homeassistant/components/lightwave/switch.py +++ b/homeassistant/components/lightwave/switch.py @@ -4,7 +4,7 @@ from homeassistant.const import CONF_NAME from . import LIGHTWAVE_LINK - +DEPENDENCIES = ['lightwave'] async def async_setup_platform( diff --git a/homeassistant/components/limitlessled/light.py b/homeassistant/components/limitlessled/light.py index 31f6679400e..4f187afa1d7 100644 --- a/homeassistant/components/limitlessled/light.py +++ b/homeassistant/components/limitlessled/light.py @@ -15,7 +15,7 @@ from homeassistant.util.color import ( color_temperature_mired_to_kelvin, color_hs_to_RGB) from homeassistant.helpers.restore_state import RestoreEntity - +REQUIREMENTS = ['limitlessled==1.1.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/linksys_ap/device_tracker.py b/homeassistant/components/linksys_ap/device_tracker.py index 324a8390c54..46cc78d4e4a 100644 --- a/homeassistant/components/linksys_ap/device_tracker.py +++ b/homeassistant/components/linksys_ap/device_tracker.py @@ -14,7 +14,7 @@ from homeassistant.const import ( INTERFACES = 2 DEFAULT_TIMEOUT = 10 - +REQUIREMENTS = ['beautifulsoup4==4.7.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/linky/sensor.py b/homeassistant/components/linky/sensor.py index 0684a766f95..35f85f15ed6 100644 --- a/homeassistant/components/linky/sensor.py +++ b/homeassistant/components/linky/sensor.py @@ -12,7 +12,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pylinky==0.3.3'] _LOGGER = logging.getLogger(__name__) SCAN_INTERVAL = timedelta(minutes=10) diff --git a/homeassistant/components/linode/__init__.py b/homeassistant/components/linode/__init__.py index 1292b76110b..8bbd98c0acf 100644 --- a/homeassistant/components/linode/__init__.py +++ b/homeassistant/components/linode/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import CONF_ACCESS_TOKEN import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle - +REQUIREMENTS = ['linode-api==4.1.9b1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/linode/binary_sensor.py b/homeassistant/components/linode/binary_sensor.py index d82c48c61fd..19455917dbb 100644 --- a/homeassistant/components/linode/binary_sensor.py +++ b/homeassistant/components/linode/binary_sensor.py @@ -16,7 +16,7 @@ _LOGGER = logging.getLogger(__name__) DEFAULT_NAME = 'Node' DEFAULT_DEVICE_CLASS = 'moving' - +DEPENDENCIES = ['linode'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_NODES): vol.All(cv.ensure_list, [cv.string]), diff --git a/homeassistant/components/linode/switch.py b/homeassistant/components/linode/switch.py index 378bc1824ee..e5f97ef756e 100644 --- a/homeassistant/components/linode/switch.py +++ b/homeassistant/components/linode/switch.py @@ -13,7 +13,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['linode'] DEFAULT_NAME = 'Node' diff --git a/homeassistant/components/linux_battery/sensor.py b/homeassistant/components/linux_battery/sensor.py index 6ff6487a530..7164315de8e 100644 --- a/homeassistant/components/linux_battery/sensor.py +++ b/homeassistant/components/linux_battery/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import ATTR_NAME, CONF_NAME, DEVICE_CLASS_BATTERY import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['batinfo==0.4.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/lirc/__init__.py b/homeassistant/components/lirc/__init__.py index 72e1c4be2e7..0f00eda2007 100644 --- a/homeassistant/components/lirc/__init__.py +++ b/homeassistant/components/lirc/__init__.py @@ -9,7 +9,7 @@ import voluptuous as vol from homeassistant.const import ( EVENT_HOMEASSISTANT_STOP, EVENT_HOMEASSISTANT_START) - +REQUIREMENTS = ['python-lirc==1.2.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/litejet/__init__.py b/homeassistant/components/litejet/__init__.py index d5bb4a60153..b4e8e45fa0b 100644 --- a/homeassistant/components/litejet/__init__.py +++ b/homeassistant/components/litejet/__init__.py @@ -7,7 +7,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers import discovery from homeassistant.const import CONF_PORT - +REQUIREMENTS = ['pylitejet==0.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/litejet/light.py b/homeassistant/components/litejet/light.py index 4a13526e39f..e52e50ed21a 100644 --- a/homeassistant/components/litejet/light.py +++ b/homeassistant/components/litejet/light.py @@ -7,7 +7,7 @@ from homeassistant.components.light import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['litejet'] ATTR_NUMBER = 'number' diff --git a/homeassistant/components/litejet/scene.py b/homeassistant/components/litejet/scene.py index 725334e303e..2563c9ceb0c 100644 --- a/homeassistant/components/litejet/scene.py +++ b/homeassistant/components/litejet/scene.py @@ -4,7 +4,7 @@ import logging from homeassistant.components import litejet from homeassistant.components.scene import Scene - +DEPENDENCIES = ['litejet'] ATTR_NUMBER = 'number' diff --git a/homeassistant/components/litejet/switch.py b/homeassistant/components/litejet/switch.py index 92bd655f3fb..9972dcb9f44 100644 --- a/homeassistant/components/litejet/switch.py +++ b/homeassistant/components/litejet/switch.py @@ -4,7 +4,7 @@ import logging from homeassistant.components import litejet from homeassistant.components.switch import SwitchDevice - +DEPENDENCIES = ['litejet'] ATTR_NUMBER = 'number' diff --git a/homeassistant/components/liveboxplaytv/media_player.py b/homeassistant/components/liveboxplaytv/media_player.py index 46e23cd211d..1ee9931d233 100644 --- a/homeassistant/components/liveboxplaytv/media_player.py +++ b/homeassistant/components/liveboxplaytv/media_player.py @@ -18,7 +18,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['liveboxplaytv==2.0.2', 'pyteleloisirs==3.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/locative/__init__.py b/homeassistant/components/locative/__init__.py index 36c639ba848..335ae4cfe1e 100644 --- a/homeassistant/components/locative/__init__.py +++ b/homeassistant/components/locative/__init__.py @@ -16,7 +16,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_send _LOGGER = logging.getLogger(__name__) DOMAIN = 'locative' - +DEPENDENCIES = ['webhook'] TRACKER_UPDATE = '{}_tracker_update'.format(DOMAIN) diff --git a/homeassistant/components/locative/device_tracker.py b/homeassistant/components/locative/device_tracker.py index a25de7538c8..51135f4e21a 100644 --- a/homeassistant/components/locative/device_tracker.py +++ b/homeassistant/components/locative/device_tracker.py @@ -10,7 +10,7 @@ from . import DOMAIN as LOCATIVE_DOMAIN, TRACKER_UPDATE _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['locative'] DATA_KEY = '{}.{}'.format(LOCATIVE_DOMAIN, DEVICE_TRACKER_DOMAIN) diff --git a/homeassistant/components/lock/__init__.py b/homeassistant/components/lock/__init__.py index a7b45cabcd0..fe5286ba813 100644 --- a/homeassistant/components/lock/__init__.py +++ b/homeassistant/components/lock/__init__.py @@ -19,7 +19,7 @@ from homeassistant.components import group ATTR_CHANGED_BY = 'changed_by' DOMAIN = 'lock' - +DEPENDENCIES = ['group'] SCAN_INTERVAL = timedelta(seconds=30) ENTITY_ID_ALL_LOCKS = group.ENTITY_ID_FORMAT.format('all_locks') diff --git a/homeassistant/components/logbook/__init__.py b/homeassistant/components/logbook/__init__.py index 97b3e890371..7a0fb5e2654 100644 --- a/homeassistant/components/logbook/__init__.py +++ b/homeassistant/components/logbook/__init__.py @@ -31,7 +31,7 @@ CONF_DOMAINS = 'domains' CONF_ENTITIES = 'entities' CONTINUOUS_DOMAINS = ['proximity', 'sensor'] - +DEPENDENCIES = ['recorder', 'frontend'] DOMAIN = 'logbook' diff --git a/homeassistant/components/logi_circle/__init__.py b/homeassistant/components/logi_circle/__init__.py index d14d331eea7..433895293f4 100644 --- a/homeassistant/components/logi_circle/__init__.py +++ b/homeassistant/components/logi_circle/__init__.py @@ -20,7 +20,7 @@ from .const import ( RECORDING_MODE_KEY, SIGNAL_LOGI_CIRCLE_RECONFIGURE, SIGNAL_LOGI_CIRCLE_RECORD, SIGNAL_LOGI_CIRCLE_SNAPSHOT) - +REQUIREMENTS = ['logi_circle==0.2.2'] NOTIFICATION_ID = 'logi_circle_notification' NOTIFICATION_TITLE = 'Logi Circle Setup' diff --git a/homeassistant/components/logi_circle/camera.py b/homeassistant/components/logi_circle/camera.py index 0ececc9657a..b69f23ac19d 100644 --- a/homeassistant/components/logi_circle/camera.py +++ b/homeassistant/components/logi_circle/camera.py @@ -15,7 +15,7 @@ from .const import ( RECORDING_MODE_KEY, SIGNAL_LOGI_CIRCLE_RECONFIGURE, SIGNAL_LOGI_CIRCLE_RECORD, SIGNAL_LOGI_CIRCLE_SNAPSHOT) - +DEPENDENCIES = ['logi_circle', 'ffmpeg'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/logi_circle/sensor.py b/homeassistant/components/logi_circle/sensor.py index 5b0efc0af94..01d5492eea7 100644 --- a/homeassistant/components/logi_circle/sensor.py +++ b/homeassistant/components/logi_circle/sensor.py @@ -11,7 +11,7 @@ from homeassistant.util.dt import as_local from .const import ( ATTRIBUTION, DOMAIN as LOGI_CIRCLE_DOMAIN, LOGI_SENSORS as SENSOR_TYPES) - +DEPENDENCIES = ['logi_circle'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/london_underground/sensor.py b/homeassistant/components/london_underground/sensor.py index 4421f1d614f..c2502e2ab2b 100644 --- a/homeassistant/components/london_underground/sensor.py +++ b/homeassistant/components/london_underground/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import ATTR_ATTRIBUTION import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['london-tube-status==0.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/loopenergy/sensor.py b/homeassistant/components/loopenergy/sensor.py index f6a4db9ef55..23bdf48f645 100644 --- a/homeassistant/components/loopenergy/sensor.py +++ b/homeassistant/components/loopenergy/sensor.py @@ -12,7 +12,7 @@ from homeassistant.helpers.entity import Entity _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pyloopenergy==0.1.2'] CONF_ELEC = 'electricity' CONF_GAS = 'gas' diff --git a/homeassistant/components/luci/device_tracker.py b/homeassistant/components/luci/device_tracker.py index bd11cfb9a81..77273d89d42 100644 --- a/homeassistant/components/luci/device_tracker.py +++ b/homeassistant/components/luci/device_tracker.py @@ -9,7 +9,7 @@ from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_SSL, CONF_USERNAME) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['openwrt-luci-rpc==1.0.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/luftdaten/__init__.py b/homeassistant/components/luftdaten/__init__.py index 898f90d0687..125cefb9026 100644 --- a/homeassistant/components/luftdaten/__init__.py +++ b/homeassistant/components/luftdaten/__init__.py @@ -17,7 +17,7 @@ from homeassistant.helpers.event import async_track_time_interval from .config_flow import configured_sensors, duplicate_stations from .const import CONF_SENSOR_ID, DEFAULT_SCAN_INTERVAL, DOMAIN - +REQUIREMENTS = ['luftdaten==0.3.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/luftdaten/sensor.py b/homeassistant/components/luftdaten/sensor.py index a4c734e8ec0..107673bac45 100644 --- a/homeassistant/components/luftdaten/sensor.py +++ b/homeassistant/components/luftdaten/sensor.py @@ -14,7 +14,7 @@ from .const import ATTR_SENSOR_ID _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['luftdaten'] async def async_setup_platform( diff --git a/homeassistant/components/lupusec/__init__.py b/homeassistant/components/lupusec/__init__.py index 5eeb68b7b78..8a5f098f741 100644 --- a/homeassistant/components/lupusec/__init__.py +++ b/homeassistant/components/lupusec/__init__.py @@ -11,7 +11,7 @@ from homeassistant.helpers.entity import Entity _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['lupupy==0.0.17'] DOMAIN = 'lupusec' diff --git a/homeassistant/components/lupusec/alarm_control_panel.py b/homeassistant/components/lupusec/alarm_control_panel.py index f2295203487..0a88f3bd552 100644 --- a/homeassistant/components/lupusec/alarm_control_panel.py +++ b/homeassistant/components/lupusec/alarm_control_panel.py @@ -8,7 +8,7 @@ from homeassistant.const import ( from . import DOMAIN as LUPUSEC_DOMAIN, LupusecDevice - +DEPENDENCIES = ['lupusec'] ICON = 'mdi:security' diff --git a/homeassistant/components/lupusec/binary_sensor.py b/homeassistant/components/lupusec/binary_sensor.py index a8e4afdbd9d..2c3f5e0e0b8 100644 --- a/homeassistant/components/lupusec/binary_sensor.py +++ b/homeassistant/components/lupusec/binary_sensor.py @@ -7,7 +7,7 @@ from homeassistant.components.binary_sensor import ( from . import DOMAIN as LUPUSEC_DOMAIN, LupusecDevice - +DEPENDENCIES = ['lupusec'] SCAN_INTERVAL = timedelta(seconds=2) diff --git a/homeassistant/components/lupusec/switch.py b/homeassistant/components/lupusec/switch.py index a65b4e20010..0d86ea0a365 100644 --- a/homeassistant/components/lupusec/switch.py +++ b/homeassistant/components/lupusec/switch.py @@ -6,7 +6,7 @@ from homeassistant.components.switch import SwitchDevice from . import DOMAIN as LUPUSEC_DOMAIN, LupusecDevice - +DEPENDENCIES = ['lupusec'] SCAN_INTERVAL = timedelta(seconds=2) diff --git a/homeassistant/components/lutron/__init__.py b/homeassistant/components/lutron/__init__.py index bfea1f4b4d5..f642e96d8f6 100644 --- a/homeassistant/components/lutron/__init__.py +++ b/homeassistant/components/lutron/__init__.py @@ -10,7 +10,7 @@ from homeassistant.helpers import discovery from homeassistant.helpers.entity import Entity from homeassistant.util import slugify - +REQUIREMENTS = ['pylutron==0.2.0'] DOMAIN = 'lutron' diff --git a/homeassistant/components/lutron/cover.py b/homeassistant/components/lutron/cover.py index 9dbf7374aa2..da7f69095fc 100644 --- a/homeassistant/components/lutron/cover.py +++ b/homeassistant/components/lutron/cover.py @@ -9,7 +9,7 @@ from . import LUTRON_CONTROLLER, LUTRON_DEVICES, LutronDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['lutron'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/lutron/light.py b/homeassistant/components/lutron/light.py index f042bfa5db1..5f3fd4787fd 100644 --- a/homeassistant/components/lutron/light.py +++ b/homeassistant/components/lutron/light.py @@ -8,7 +8,7 @@ from . import LUTRON_CONTROLLER, LUTRON_DEVICES, LutronDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['lutron'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/lutron/scene.py b/homeassistant/components/lutron/scene.py index afe91599daf..a2d18c6d242 100644 --- a/homeassistant/components/lutron/scene.py +++ b/homeassistant/components/lutron/scene.py @@ -7,7 +7,7 @@ from . import LUTRON_CONTROLLER, LUTRON_DEVICES, LutronDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['lutron'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/lutron/switch.py b/homeassistant/components/lutron/switch.py index 2a3e48b0685..b42c0d930bc 100644 --- a/homeassistant/components/lutron/switch.py +++ b/homeassistant/components/lutron/switch.py @@ -7,7 +7,7 @@ from . import LUTRON_CONTROLLER, LUTRON_DEVICES, LutronDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['lutron'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/lutron_caseta/__init__.py b/homeassistant/components/lutron_caseta/__init__.py index 4490d16329b..61c005f60b2 100644 --- a/homeassistant/components/lutron_caseta/__init__.py +++ b/homeassistant/components/lutron_caseta/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import CONF_HOST from homeassistant.helpers import discovery from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pylutron-caseta==0.5.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/lutron_caseta/cover.py b/homeassistant/components/lutron_caseta/cover.py index d4c061e13bd..d970f5282ff 100644 --- a/homeassistant/components/lutron_caseta/cover.py +++ b/homeassistant/components/lutron_caseta/cover.py @@ -9,7 +9,7 @@ from . import LUTRON_CASETA_SMARTBRIDGE, LutronCasetaDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['lutron_caseta'] async def async_setup_platform( diff --git a/homeassistant/components/lutron_caseta/light.py b/homeassistant/components/lutron_caseta/light.py index 67efce514a9..d883da73c91 100644 --- a/homeassistant/components/lutron_caseta/light.py +++ b/homeassistant/components/lutron_caseta/light.py @@ -10,7 +10,7 @@ from . import LUTRON_CASETA_SMARTBRIDGE, LutronCasetaDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['lutron_caseta'] async def async_setup_platform( diff --git a/homeassistant/components/lutron_caseta/scene.py b/homeassistant/components/lutron_caseta/scene.py index 92b2476dbb1..2e7059a56fc 100644 --- a/homeassistant/components/lutron_caseta/scene.py +++ b/homeassistant/components/lutron_caseta/scene.py @@ -7,7 +7,7 @@ from . import LUTRON_CASETA_SMARTBRIDGE _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['lutron_caseta'] async def async_setup_platform( diff --git a/homeassistant/components/lutron_caseta/switch.py b/homeassistant/components/lutron_caseta/switch.py index 860707656e9..54c67091357 100644 --- a/homeassistant/components/lutron_caseta/switch.py +++ b/homeassistant/components/lutron_caseta/switch.py @@ -7,7 +7,7 @@ from . import LUTRON_CASETA_SMARTBRIDGE, LutronCasetaDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['lutron_caseta'] async def async_setup_platform( diff --git a/homeassistant/components/lw12wifi/light.py b/homeassistant/components/lw12wifi/light.py index b00f8948bac..5d9b7635ad2 100644 --- a/homeassistant/components/lw12wifi/light.py +++ b/homeassistant/components/lw12wifi/light.py @@ -16,7 +16,7 @@ import homeassistant.helpers.config_validation as cv import homeassistant.util.color as color_util - +REQUIREMENTS = ['lw12==0.9.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/lyft/sensor.py b/homeassistant/components/lyft/sensor.py index 6f13ba64225..98d79cd970b 100644 --- a/homeassistant/components/lyft/sensor.py +++ b/homeassistant/components/lyft/sensor.py @@ -9,7 +9,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['lyft_rides==0.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/magicseaweed/sensor.py b/homeassistant/components/magicseaweed/sensor.py index eaa61d2b7a6..4c09d1e09e0 100644 --- a/homeassistant/components/magicseaweed/sensor.py +++ b/homeassistant/components/magicseaweed/sensor.py @@ -11,7 +11,7 @@ import homeassistant.util.dt as dt_util from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['magicseaweed==1.0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mailbox/__init__.py b/homeassistant/components/mailbox/__init__.py index 359e6e6303c..1907a1e9e97 100644 --- a/homeassistant/components/mailbox/__init__.py +++ b/homeassistant/components/mailbox/__init__.py @@ -18,7 +18,7 @@ from homeassistant.setup import async_prepare_setup_platform _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['http'] DOMAIN = 'mailbox' EVENT = 'mailbox_updated' diff --git a/homeassistant/components/mailgun/__init__.py b/homeassistant/components/mailgun/__init__.py index cd9c37959b6..2a941d8bf50 100644 --- a/homeassistant/components/mailgun/__init__.py +++ b/homeassistant/components/mailgun/__init__.py @@ -15,7 +15,7 @@ _LOGGER = logging.getLogger(__name__) CONF_SANDBOX = 'sandbox' DEFAULT_SANDBOX = False - +DEPENDENCIES = ['webhook'] DOMAIN = 'mailgun' MESSAGE_RECEIVED = '{}_message_received'.format(DOMAIN) diff --git a/homeassistant/components/mailgun/notify.py b/homeassistant/components/mailgun/notify.py index 81b928ad24d..b9f5bf0b100 100644 --- a/homeassistant/components/mailgun/notify.py +++ b/homeassistant/components/mailgun/notify.py @@ -11,11 +11,11 @@ from homeassistant.const import ( from . import CONF_SANDBOX, DOMAIN as MAILGUN_DOMAIN - +REQUIREMENTS = ['pymailgunner==1.4'] _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['mailgun'] # Images to attach to notification ATTR_IMAGES = 'images' diff --git a/homeassistant/components/manual_mqtt/alarm_control_panel.py b/homeassistant/components/manual_mqtt/alarm_control_panel.py index 71c57a40a16..8057a899347 100644 --- a/homeassistant/components/manual_mqtt/alarm_control_panel.py +++ b/homeassistant/components/manual_mqtt/alarm_control_panel.py @@ -83,7 +83,7 @@ def _state_schema(state): return vol.Schema(schema) - +DEPENDENCIES = ['mqtt'] PLATFORM_SCHEMA = vol.Schema(vol.All(mqtt.MQTT_BASE_PLATFORM_SCHEMA.extend({ vol.Required(CONF_PLATFORM): 'manual_mqtt', diff --git a/homeassistant/components/mastodon/notify.py b/homeassistant/components/mastodon/notify.py index 01a3f44400e..c1a91b8312e 100644 --- a/homeassistant/components/mastodon/notify.py +++ b/homeassistant/components/mastodon/notify.py @@ -9,7 +9,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.components.notify import (PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['Mastodon.py==1.3.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/matrix/__init__.py b/homeassistant/components/matrix/__init__.py index 52a4c2794e0..4b3c1bf4d76 100644 --- a/homeassistant/components/matrix/__init__.py +++ b/homeassistant/components/matrix/__init__.py @@ -14,7 +14,7 @@ from homeassistant.const import (CONF_USERNAME, CONF_PASSWORD, from homeassistant.util.json import load_json, save_json from homeassistant.exceptions import HomeAssistantError - +REQUIREMENTS = ['matrix-client==0.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/matrix/notify.py b/homeassistant/components/matrix/notify.py index bbbe52a6739..f1f53268c2b 100644 --- a/homeassistant/components/matrix/notify.py +++ b/homeassistant/components/matrix/notify.py @@ -13,7 +13,7 @@ _LOGGER = logging.getLogger(__name__) CONF_DEFAULT_ROOM = 'default_room' DOMAIN = 'matrix' - +DEPENDENCIES = [DOMAIN] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_DEFAULT_ROOM): cv.string, diff --git a/homeassistant/components/maxcube/__init__.py b/homeassistant/components/maxcube/__init__.py index c485f552360..c398ccbde4f 100644 --- a/homeassistant/components/maxcube/__init__.py +++ b/homeassistant/components/maxcube/__init__.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.discovery import load_platform from homeassistant.const import CONF_HOST, CONF_PORT, CONF_SCAN_INTERVAL - +REQUIREMENTS = ['maxcube-api==0.1.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/media_extractor/__init__.py b/homeassistant/components/media_extractor/__init__.py index dbc12811839..f44075816af 100644 --- a/homeassistant/components/media_extractor/__init__.py +++ b/homeassistant/components/media_extractor/__init__.py @@ -12,7 +12,7 @@ from homeassistant.const import ( ATTR_ENTITY_ID) from homeassistant.helpers import config_validation as cv - +REQUIREMENTS = ['youtube_dl==2019.04.07'] _LOGGER = logging.getLogger(__name__) @@ -20,7 +20,7 @@ CONF_CUSTOMIZE_ENTITIES = 'customize' CONF_DEFAULT_STREAM_QUERY = 'default_query' DEFAULT_STREAM_QUERY = 'best' - +DEPENDENCIES = ['media_player'] DOMAIN = 'media_extractor' CONFIG_SCHEMA = vol.Schema({ diff --git a/homeassistant/components/media_player/__init__.py b/homeassistant/components/media_player/__init__.py index 454bad1a17d..5bc2d640e2b 100644 --- a/homeassistant/components/media_player/__init__.py +++ b/homeassistant/components/media_player/__init__.py @@ -51,7 +51,7 @@ from .reproduce_state import async_reproduce_states # noqa _LOGGER = logging.getLogger(__name__) _RND = SystemRandom() - +DEPENDENCIES = ['http'] ENTITY_ID_FORMAT = DOMAIN + '.{}' diff --git a/homeassistant/components/mediaroom/media_player.py b/homeassistant/components/mediaroom/media_player.py index 42b6afc00f3..acbc0462722 100644 --- a/homeassistant/components/mediaroom/media_player.py +++ b/homeassistant/components/mediaroom/media_player.py @@ -19,7 +19,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.dispatcher import ( async_dispatcher_connect, dispatcher_send) - +REQUIREMENTS = ['pymediaroom==0.6.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/melissa/__init__.py b/homeassistant/components/melissa/__init__.py index 5ebd6647623..2037caa11c3 100644 --- a/homeassistant/components/melissa/__init__.py +++ b/homeassistant/components/melissa/__init__.py @@ -7,7 +7,7 @@ from homeassistant.const import CONF_USERNAME, CONF_PASSWORD from homeassistant.helpers import config_validation as cv from homeassistant.helpers.discovery import async_load_platform - +REQUIREMENTS = ["py-melissa-climate==2.0.0"] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/melissa/climate.py b/homeassistant/components/melissa/climate.py index 33530ce69d8..79d94a41991 100644 --- a/homeassistant/components/melissa/climate.py +++ b/homeassistant/components/melissa/climate.py @@ -13,7 +13,7 @@ from homeassistant.const import ( from . import DATA_MELISSA - +DEPENDENCIES = ['melissa'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/meraki/device_tracker.py b/homeassistant/components/meraki/device_tracker.py index b516f5e0d8a..d12aff1127a 100644 --- a/homeassistant/components/meraki/device_tracker.py +++ b/homeassistant/components/meraki/device_tracker.py @@ -18,7 +18,7 @@ from homeassistant.components.device_tracker import ( CONF_VALIDATOR = 'validator' CONF_SECRET = 'secret' - +DEPENDENCIES = ['http'] URL = '/api/meraki' VERSION = '2.0' diff --git a/homeassistant/components/message_bird/notify.py b/homeassistant/components/message_bird/notify.py index 45b7671a9c6..c801de34a9a 100644 --- a/homeassistant/components/message_bird/notify.py +++ b/homeassistant/components/message_bird/notify.py @@ -9,7 +9,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.components.notify import (ATTR_TARGET, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['messagebird==1.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/met/weather.py b/homeassistant/components/met/weather.py index 9a39722d741..6c9613ac5d2 100644 --- a/homeassistant/components/met/weather.py +++ b/homeassistant/components/met/weather.py @@ -13,7 +13,7 @@ from homeassistant.helpers.event import ( async_call_later, async_track_utc_time_change) import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['pyMetno==0.4.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/meteo_france/__init__.py b/homeassistant/components/meteo_france/__init__.py index ccf089e8eb0..e084cff3c79 100644 --- a/homeassistant/components/meteo_france/__init__.py +++ b/homeassistant/components/meteo_france/__init__.py @@ -9,7 +9,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.discovery import load_platform from homeassistant.util import Throttle - +REQUIREMENTS = ['meteofrance==0.3.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/metoffice/sensor.py b/homeassistant/components/metoffice/sensor.py index d818b0bf8d5..6c4e91517da 100644 --- a/homeassistant/components/metoffice/sensor.py +++ b/homeassistant/components/metoffice/sensor.py @@ -14,7 +14,7 @@ from homeassistant.util import Throttle _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['datapoint==0.4.3'] ATTR_LAST_UPDATE = 'last_update' ATTR_SENSOR_ID = 'sensor_id' diff --git a/homeassistant/components/metoffice/weather.py b/homeassistant/components/metoffice/weather.py index 3ddee31f19f..a67dcdcdbd6 100644 --- a/homeassistant/components/metoffice/weather.py +++ b/homeassistant/components/metoffice/weather.py @@ -10,7 +10,7 @@ from homeassistant.helpers import config_validation as cv from .sensor import ATTRIBUTION, CONDITION_CLASSES, MetOfficeCurrentData - +REQUIREMENTS = ['datapoint==0.4.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mfi/sensor.py b/homeassistant/components/mfi/sensor.py index 29a471cd989..36f9d1a829c 100644 --- a/homeassistant/components/mfi/sensor.py +++ b/homeassistant/components/mfi/sensor.py @@ -11,7 +11,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['mficlient==0.3.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mfi/switch.py b/homeassistant/components/mfi/switch.py index 4c83d47309b..818081f7a2e 100644 --- a/homeassistant/components/mfi/switch.py +++ b/homeassistant/components/mfi/switch.py @@ -10,7 +10,7 @@ from homeassistant.const import ( CONF_VERIFY_SSL) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['mficlient==0.3.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mhz19/sensor.py b/homeassistant/components/mhz19/sensor.py index 5f609f31406..3aa82950fa7 100644 --- a/homeassistant/components/mhz19/sensor.py +++ b/homeassistant/components/mhz19/sensor.py @@ -12,7 +12,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.util.temperature import celsius_to_fahrenheit from homeassistant.util import Throttle - +REQUIREMENTS = ['pmsensor==0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/microsoft/tts.py b/homeassistant/components/microsoft/tts.py index bd27a5580d5..9fe31ef495e 100644 --- a/homeassistant/components/microsoft/tts.py +++ b/homeassistant/components/microsoft/tts.py @@ -15,7 +15,7 @@ CONF_VOLUME = 'volume' CONF_PITCH = 'pitch' CONF_CONTOUR = 'contour' - +REQUIREMENTS = ["pycsspeechtts==1.0.2"] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/microsoft_face/__init__.py b/homeassistant/components/microsoft_face/__init__.py index 5cd977eb40e..9b3ee960fb2 100644 --- a/homeassistant/components/microsoft_face/__init__.py +++ b/homeassistant/components/microsoft_face/__init__.py @@ -25,7 +25,7 @@ CONF_AZURE_REGION = 'azure_region' DATA_MICROSOFT_FACE = 'microsoft_face' DEFAULT_TIMEOUT = 10 - +DEPENDENCIES = ['camera'] DOMAIN = 'microsoft_face' FACE_API_URL = "api.cognitive.microsoft.com/face/v1.0/{0}" diff --git a/homeassistant/components/microsoft_face_detect/image_processing.py b/homeassistant/components/microsoft_face_detect/image_processing.py index 411002afd77..91eae07e992 100644 --- a/homeassistant/components/microsoft_face_detect/image_processing.py +++ b/homeassistant/components/microsoft_face_detect/image_processing.py @@ -11,7 +11,7 @@ from homeassistant.core import split_entity_id from homeassistant.exceptions import HomeAssistantError import homeassistant.helpers.config_validation as cv - +DEPENDENCIES = ['microsoft_face'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/microsoft_face_identify/image_processing.py b/homeassistant/components/microsoft_face_identify/image_processing.py index 2583ef5d79d..52baa3617e8 100644 --- a/homeassistant/components/microsoft_face_identify/image_processing.py +++ b/homeassistant/components/microsoft_face_identify/image_processing.py @@ -12,7 +12,7 @@ from homeassistant.core import split_entity_id from homeassistant.exceptions import HomeAssistantError import homeassistant.helpers.config_validation as cv - +DEPENDENCIES = ['microsoft_face'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/miflora/sensor.py b/homeassistant/components/miflora/sensor.py index b544260aad8..04595b0daeb 100644 --- a/homeassistant/components/miflora/sensor.py +++ b/homeassistant/components/miflora/sensor.py @@ -11,7 +11,7 @@ from homeassistant.const import ( CONF_SCAN_INTERVAL, EVENT_HOMEASSISTANT_START) from homeassistant.core import callback - +REQUIREMENTS = ['miflora==0.4.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mikrotik/device_tracker.py b/homeassistant/components/mikrotik/device_tracker.py index 3b8572a7958..7d376b431bb 100644 --- a/homeassistant/components/mikrotik/device_tracker.py +++ b/homeassistant/components/mikrotik/device_tracker.py @@ -11,7 +11,7 @@ from homeassistant.components.device_tracker import ( from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_PORT, CONF_SSL, CONF_METHOD) - +REQUIREMENTS = ['librouteros==2.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mill/climate.py b/homeassistant/components/mill/climate.py index 620f5bb8854..cb6d47a52b0 100644 --- a/homeassistant/components/mill/climate.py +++ b/homeassistant/components/mill/climate.py @@ -15,7 +15,7 @@ from homeassistant.const import ( from homeassistant.helpers import config_validation as cv from homeassistant.helpers.aiohttp_client import async_get_clientsession - +REQUIREMENTS = ['millheater==0.3.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mitemp_bt/sensor.py b/homeassistant/components/mitemp_bt/sensor.py index 3277eff8435..cea2c6a55db 100644 --- a/homeassistant/components/mitemp_bt/sensor.py +++ b/homeassistant/components/mitemp_bt/sensor.py @@ -12,7 +12,7 @@ from homeassistant.const import ( ) - +REQUIREMENTS = ['mitemp_bt==0.0.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mobile_app/__init__.py b/homeassistant/components/mobile_app/__init__.py index a6c207ad77c..a4ae78959cf 100644 --- a/homeassistant/components/mobile_app/__init__.py +++ b/homeassistant/components/mobile_app/__init__.py @@ -15,9 +15,9 @@ from .http_api import RegistrationsView from .webhook import handle_webhook from .websocket_api import register_websocket_handlers +DEPENDENCIES = ['device_tracker', 'http', 'webhook'] - - +REQUIREMENTS = ['PyNaCl==1.3.0'] async def async_setup(hass: HomeAssistantType, config: ConfigType): diff --git a/homeassistant/components/mobile_app/binary_sensor.py b/homeassistant/components/mobile_app/binary_sensor.py index 920d58f0aae..50943bb6504 100644 --- a/homeassistant/components/mobile_app/binary_sensor.py +++ b/homeassistant/components/mobile_app/binary_sensor.py @@ -13,7 +13,7 @@ from .const import (ATTR_SENSOR_STATE, from .entity import MobileAppEntity, sensor_id - +DEPENDENCIES = ['mobile_app'] async def async_setup_entry(hass, config_entry, async_add_entities): diff --git a/homeassistant/components/mobile_app/notify.py b/homeassistant/components/mobile_app/notify.py index eb8df94253b..8d2ac1b97ec 100644 --- a/homeassistant/components/mobile_app/notify.py +++ b/homeassistant/components/mobile_app/notify.py @@ -22,7 +22,7 @@ from .const import (ATTR_APP_DATA, ATTR_APP_ID, ATTR_APP_VERSION, _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['mobile_app'] def push_registrations(hass): diff --git a/homeassistant/components/mobile_app/sensor.py b/homeassistant/components/mobile_app/sensor.py index 3d516c05661..64ad69c5758 100644 --- a/homeassistant/components/mobile_app/sensor.py +++ b/homeassistant/components/mobile_app/sensor.py @@ -12,7 +12,7 @@ from .const import (ATTR_SENSOR_STATE, from .entity import MobileAppEntity, sensor_id - +DEPENDENCIES = ['mobile_app'] async def async_setup_entry(hass, config_entry, async_add_entities): diff --git a/homeassistant/components/mochad/__init__.py b/homeassistant/components/mochad/__init__.py index 7b75ea5cbcf..e10adf693fe 100644 --- a/homeassistant/components/mochad/__init__.py +++ b/homeassistant/components/mochad/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import ( EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP) from homeassistant.const import (CONF_HOST, CONF_PORT) - +REQUIREMENTS = ['pymochad==0.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mochad/light.py b/homeassistant/components/mochad/light.py index 2b832b7edb8..d2e1a567d27 100644 --- a/homeassistant/components/mochad/light.py +++ b/homeassistant/components/mochad/light.py @@ -12,7 +12,7 @@ from homeassistant.helpers import config_validation as cv _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['mochad'] CONF_BRIGHTNESS_LEVELS = 'brightness_levels' diff --git a/homeassistant/components/mochad/switch.py b/homeassistant/components/mochad/switch.py index 28d570e6174..03fd2db07bf 100644 --- a/homeassistant/components/mochad/switch.py +++ b/homeassistant/components/mochad/switch.py @@ -11,7 +11,7 @@ from homeassistant.helpers import config_validation as cv _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['mochad'] PLATFORM_SCHEMA = vol.Schema({ diff --git a/homeassistant/components/modbus/__init__.py b/homeassistant/components/modbus/__init__.py index 536f7729fe7..0500a904cb9 100644 --- a/homeassistant/components/modbus/__init__.py +++ b/homeassistant/components/modbus/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import ( CONF_TYPE, EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pymodbus==1.5.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/modbus/binary_sensor.py b/homeassistant/components/modbus/binary_sensor.py index 3358ea30656..0c10548452a 100644 --- a/homeassistant/components/modbus/binary_sensor.py +++ b/homeassistant/components/modbus/binary_sensor.py @@ -15,7 +15,7 @@ _LOGGER = logging.getLogger(__name__) CONF_COIL = 'coil' CONF_COILS = 'coils' - +DEPENDENCIES = ['modbus'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_COILS): [{ diff --git a/homeassistant/components/modbus/climate.py b/homeassistant/components/modbus/climate.py index c11d6ffbce9..4d2b86903e7 100644 --- a/homeassistant/components/modbus/climate.py +++ b/homeassistant/components/modbus/climate.py @@ -22,7 +22,7 @@ CONF_PRECISION = 'precision' DATA_TYPE_INT = 'int' DATA_TYPE_UINT = 'uint' DATA_TYPE_FLOAT = 'float' - +DEPENDENCIES = ['modbus'] SUPPORT_FLAGS = SUPPORT_TARGET_TEMPERATURE diff --git a/homeassistant/components/modbus/sensor.py b/homeassistant/components/modbus/sensor.py index c0ca00013a1..10e11a9a656 100644 --- a/homeassistant/components/modbus/sensor.py +++ b/homeassistant/components/modbus/sensor.py @@ -29,7 +29,7 @@ DATA_TYPE_FLOAT = 'float' DATA_TYPE_INT = 'int' DATA_TYPE_UINT = 'uint' - +DEPENDENCIES = ['modbus'] REGISTER_TYPE_HOLDING = 'holding' REGISTER_TYPE_INPUT = 'input' diff --git a/homeassistant/components/modbus/switch.py b/homeassistant/components/modbus/switch.py index 73859c5ab26..69c5e3e4838 100644 --- a/homeassistant/components/modbus/switch.py +++ b/homeassistant/components/modbus/switch.py @@ -24,7 +24,7 @@ CONF_STATE_ON = 'state_on' CONF_VERIFY_REGISTER = 'verify_register' CONF_VERIFY_STATE = 'verify_state' - +DEPENDENCIES = ['modbus'] REGISTER_TYPE_HOLDING = 'holding' REGISTER_TYPE_INPUT = 'input' diff --git a/homeassistant/components/modem_callerid/sensor.py b/homeassistant/components/modem_callerid/sensor.py index 82a9cc61230..b87f4840334 100644 --- a/homeassistant/components/modem_callerid/sensor.py +++ b/homeassistant/components/modem_callerid/sensor.py @@ -9,7 +9,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['basicmodem==0.7'] _LOGGER = logging.getLogger(__name__) DEFAULT_NAME = 'Modem CallerID' diff --git a/homeassistant/components/monoprice/media_player.py b/homeassistant/components/monoprice/media_player.py index 1d54175ded9..edffd6ac7ce 100644 --- a/homeassistant/components/monoprice/media_player.py +++ b/homeassistant/components/monoprice/media_player.py @@ -13,7 +13,7 @@ from homeassistant.const import ( ATTR_ENTITY_ID, CONF_NAME, CONF_PORT, STATE_OFF, STATE_ON) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pymonoprice==0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mopar/__init__.py b/homeassistant/components/mopar/__init__.py index 839751f1e58..4ee9f3219b4 100644 --- a/homeassistant/components/mopar/__init__.py +++ b/homeassistant/components/mopar/__init__.py @@ -18,7 +18,7 @@ from homeassistant.helpers.discovery import load_platform from homeassistant.helpers.dispatcher import dispatcher_send from homeassistant.helpers.event import track_time_interval - +REQUIREMENTS = ['motorparts==1.1.0'] DOMAIN = 'mopar' DATA_UPDATED = '{}_data_updated'.format(DOMAIN) diff --git a/homeassistant/components/mopar/lock.py b/homeassistant/components/mopar/lock.py index 178161fbadb..aa2e0161813 100644 --- a/homeassistant/components/mopar/lock.py +++ b/homeassistant/components/mopar/lock.py @@ -7,7 +7,7 @@ from homeassistant.components.mopar import ( ) from homeassistant.const import STATE_LOCKED, STATE_UNLOCKED - +DEPENDENCIES = ['mopar'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mopar/sensor.py b/homeassistant/components/mopar/sensor.py index dcd7a7770ae..0d6e5765fda 100644 --- a/homeassistant/components/mopar/sensor.py +++ b/homeassistant/components/mopar/sensor.py @@ -10,7 +10,7 @@ from homeassistant.core import callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity import Entity - +DEPENDENCIES = ['mopar'] ICON = 'mdi:car' diff --git a/homeassistant/components/mopar/switch.py b/homeassistant/components/mopar/switch.py index 5e2f5419d00..352cdafbd41 100644 --- a/homeassistant/components/mopar/switch.py +++ b/homeassistant/components/mopar/switch.py @@ -5,7 +5,7 @@ from homeassistant.components.mopar import DOMAIN as MOPAR_DOMAIN from homeassistant.components.switch import SwitchDevice from homeassistant.const import STATE_ON, STATE_OFF - +DEPENDENCIES = ['mopar'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mpd/media_player.py b/homeassistant/components/mpd/media_player.py index 9c118aa20d8..8cbc1406e0b 100644 --- a/homeassistant/components/mpd/media_player.py +++ b/homeassistant/components/mpd/media_player.py @@ -20,7 +20,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle - +REQUIREMENTS = ['python-mpd2==1.0.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mqtt/__init__.py b/homeassistant/components/mqtt/__init__.py index f2c65aaff69..4f9ad990105 100644 --- a/homeassistant/components/mqtt/__init__.py +++ b/homeassistant/components/mqtt/__init__.py @@ -40,7 +40,7 @@ from .const import ( CONF_BROKER, CONF_DISCOVERY, DEFAULT_DISCOVERY, CONF_STATE_TOPIC, ATTR_DISCOVERY_HASH) - +REQUIREMENTS = ['paho-mqtt==1.4.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mqtt/alarm_control_panel.py b/homeassistant/components/mqtt/alarm_control_panel.py index 5d678b477ac..03a2ac8e388 100644 --- a/homeassistant/components/mqtt/alarm_control_panel.py +++ b/homeassistant/components/mqtt/alarm_control_panel.py @@ -37,7 +37,7 @@ DEFAULT_ARM_AWAY = 'ARM_AWAY' DEFAULT_ARM_HOME = 'ARM_HOME' DEFAULT_DISARM = 'DISARM' DEFAULT_NAME = 'MQTT Alarm' - +DEPENDENCIES = ['mqtt'] PLATFORM_SCHEMA = mqtt.MQTT_BASE_PLATFORM_SCHEMA.extend({ vol.Optional(CONF_CODE): cv.string, diff --git a/homeassistant/components/mqtt/binary_sensor.py b/homeassistant/components/mqtt/binary_sensor.py index 2f8a6390b35..95daad9b262 100644 --- a/homeassistant/components/mqtt/binary_sensor.py +++ b/homeassistant/components/mqtt/binary_sensor.py @@ -29,7 +29,7 @@ DEFAULT_PAYLOAD_OFF = 'OFF' DEFAULT_PAYLOAD_ON = 'ON' DEFAULT_FORCE_UPDATE = False - +DEPENDENCIES = ['mqtt'] PLATFORM_SCHEMA = mqtt.MQTT_RO_PLATFORM_SCHEMA.extend({ vol.Optional(CONF_DEVICE): mqtt.MQTT_ENTITY_DEVICE_INFO_SCHEMA, diff --git a/homeassistant/components/mqtt/camera.py b/homeassistant/components/mqtt/camera.py index 9d2dca1fee6..f651050b6c8 100644 --- a/homeassistant/components/mqtt/camera.py +++ b/homeassistant/components/mqtt/camera.py @@ -23,7 +23,7 @@ _LOGGER = logging.getLogger(__name__) CONF_TOPIC = 'topic' DEFAULT_NAME = 'MQTT Camera' - +DEPENDENCIES = ['mqtt'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Optional(CONF_NAME, default=DEFAULT_NAME): cv.string, diff --git a/homeassistant/components/mqtt/climate.py b/homeassistant/components/mqtt/climate.py index 48419307e57..17d32984bb5 100644 --- a/homeassistant/components/mqtt/climate.py +++ b/homeassistant/components/mqtt/climate.py @@ -31,7 +31,7 @@ from .discovery import MQTT_DISCOVERY_NEW, clear_discovery_hash _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['mqtt'] DEFAULT_NAME = 'MQTT HVAC' diff --git a/homeassistant/components/mqtt/cover.py b/homeassistant/components/mqtt/cover.py index 6ab70e55fe7..5cb7300f0ef 100644 --- a/homeassistant/components/mqtt/cover.py +++ b/homeassistant/components/mqtt/cover.py @@ -25,7 +25,7 @@ from .discovery import MQTT_DISCOVERY_NEW, clear_discovery_hash _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['mqtt'] CONF_GET_POSITION_TOPIC = 'position_topic' CONF_SET_POSITION_TEMPLATE = 'set_position_template' diff --git a/homeassistant/components/mqtt/device_tracker.py b/homeassistant/components/mqtt/device_tracker.py index 302d2af8ee8..659c6315b21 100644 --- a/homeassistant/components/mqtt/device_tracker.py +++ b/homeassistant/components/mqtt/device_tracker.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv from . import CONF_QOS - +DEPENDENCIES = ['mqtt'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mqtt/fan.py b/homeassistant/components/mqtt/fan.py index dddc9dcda5d..d86390ee31d 100644 --- a/homeassistant/components/mqtt/fan.py +++ b/homeassistant/components/mqtt/fan.py @@ -23,7 +23,7 @@ from .discovery import MQTT_DISCOVERY_NEW, clear_discovery_hash _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['mqtt'] CONF_STATE_VALUE_TEMPLATE = 'state_value_template' CONF_SPEED_STATE_TOPIC = 'speed_state_topic' diff --git a/homeassistant/components/mqtt/light/__init__.py b/homeassistant/components/mqtt/light/__init__.py index e7b3e522a24..4ff6efb8643 100644 --- a/homeassistant/components/mqtt/light/__init__.py +++ b/homeassistant/components/mqtt/light/__init__.py @@ -17,7 +17,7 @@ from homeassistant.helpers.typing import HomeAssistantType, ConfigType _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['mqtt'] CONF_SCHEMA = 'schema' diff --git a/homeassistant/components/mqtt/light/schema_basic.py b/homeassistant/components/mqtt/light/schema_basic.py index 1b6ea0f00c5..d5aa4480139 100644 --- a/homeassistant/components/mqtt/light/schema_basic.py +++ b/homeassistant/components/mqtt/light/schema_basic.py @@ -30,7 +30,7 @@ from . import MQTT_LIGHT_SCHEMA_SCHEMA _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['mqtt'] CONF_BRIGHTNESS_COMMAND_TOPIC = 'brightness_command_topic' CONF_BRIGHTNESS_SCALE = 'brightness_scale' diff --git a/homeassistant/components/mqtt/light/schema_json.py b/homeassistant/components/mqtt/light/schema_json.py index 9638a3e181b..a52f3c58d0e 100644 --- a/homeassistant/components/mqtt/light/schema_json.py +++ b/homeassistant/components/mqtt/light/schema_json.py @@ -35,7 +35,7 @@ _LOGGER = logging.getLogger(__name__) DOMAIN = 'mqtt_json' - +DEPENDENCIES = ['mqtt'] DEFAULT_BRIGHTNESS = False DEFAULT_COLOR_TEMP = False diff --git a/homeassistant/components/mqtt/light/schema_template.py b/homeassistant/components/mqtt/light/schema_template.py index a1dbd196011..49cba082401 100644 --- a/homeassistant/components/mqtt/light/schema_template.py +++ b/homeassistant/components/mqtt/light/schema_template.py @@ -30,7 +30,7 @@ _LOGGER = logging.getLogger(__name__) DOMAIN = 'mqtt_template' - +DEPENDENCIES = ['mqtt'] DEFAULT_NAME = 'MQTT Template Light' DEFAULT_OPTIMISTIC = False diff --git a/homeassistant/components/mqtt/lock.py b/homeassistant/components/mqtt/lock.py index cc9f5d3753d..235eacc9454 100644 --- a/homeassistant/components/mqtt/lock.py +++ b/homeassistant/components/mqtt/lock.py @@ -27,7 +27,7 @@ DEFAULT_NAME = 'MQTT Lock' DEFAULT_OPTIMISTIC = False DEFAULT_PAYLOAD_LOCK = 'LOCK' DEFAULT_PAYLOAD_UNLOCK = 'UNLOCK' - +DEPENDENCIES = ['mqtt'] PLATFORM_SCHEMA = mqtt.MQTT_RW_PLATFORM_SCHEMA.extend({ vol.Optional(CONF_DEVICE): mqtt.MQTT_ENTITY_DEVICE_INFO_SCHEMA, diff --git a/homeassistant/components/mqtt/sensor.py b/homeassistant/components/mqtt/sensor.py index c6702a9d423..b6419ea2c24 100644 --- a/homeassistant/components/mqtt/sensor.py +++ b/homeassistant/components/mqtt/sensor.py @@ -32,7 +32,7 @@ CONF_JSON_ATTRS = 'json_attributes' DEFAULT_NAME = 'MQTT Sensor' DEFAULT_FORCE_UPDATE = False - +DEPENDENCIES = ['mqtt'] PLATFORM_SCHEMA = mqtt.MQTT_RO_PLATFORM_SCHEMA.extend({ vol.Optional(CONF_DEVICE): mqtt.MQTT_ENTITY_DEVICE_INFO_SCHEMA, diff --git a/homeassistant/components/mqtt/server.py b/homeassistant/components/mqtt/server.py index 39e17f90652..d7d36add517 100644 --- a/homeassistant/components/mqtt/server.py +++ b/homeassistant/components/mqtt/server.py @@ -8,11 +8,11 @@ import voluptuous as vol from homeassistant.const import EVENT_HOMEASSISTANT_STOP import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['hbmqtt==0.9.4'] _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['http'] # None allows custom config to be created through generate_config HBMQTT_CONFIG_SCHEMA = vol.Any(None, vol.Schema({ diff --git a/homeassistant/components/mqtt/switch.py b/homeassistant/components/mqtt/switch.py index 319ecbecf8c..20d28b6496c 100644 --- a/homeassistant/components/mqtt/switch.py +++ b/homeassistant/components/mqtt/switch.py @@ -22,7 +22,7 @@ from .discovery import MQTT_DISCOVERY_NEW, clear_discovery_hash _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['mqtt'] DEFAULT_NAME = 'MQTT Switch' DEFAULT_PAYLOAD_ON = 'ON' diff --git a/homeassistant/components/mqtt/vacuum.py b/homeassistant/components/mqtt/vacuum.py index c9d41770110..23a5e34b3ca 100644 --- a/homeassistant/components/mqtt/vacuum.py +++ b/homeassistant/components/mqtt/vacuum.py @@ -22,7 +22,7 @@ from .discovery import MQTT_DISCOVERY_NEW, clear_discovery_hash _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['mqtt'] SERVICE_TO_STRING = { SUPPORT_TURN_ON: 'turn_on', diff --git a/homeassistant/components/mqtt_eventstream/__init__.py b/homeassistant/components/mqtt_eventstream/__init__.py index 329361e9b0d..fb6a94f1870 100644 --- a/homeassistant/components/mqtt_eventstream/__init__.py +++ b/homeassistant/components/mqtt_eventstream/__init__.py @@ -15,7 +15,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.json import JSONEncoder DOMAIN = 'mqtt_eventstream' - +DEPENDENCIES = ['mqtt'] CONF_PUBLISH_TOPIC = 'publish_topic' CONF_SUBSCRIBE_TOPIC = 'subscribe_topic' diff --git a/homeassistant/components/mqtt_json/device_tracker.py b/homeassistant/components/mqtt_json/device_tracker.py index eac8f702b52..6059b26bcbd 100644 --- a/homeassistant/components/mqtt_json/device_tracker.py +++ b/homeassistant/components/mqtt_json/device_tracker.py @@ -13,7 +13,7 @@ from homeassistant.const import ( CONF_DEVICES, ATTR_GPS_ACCURACY, ATTR_LATITUDE, ATTR_LONGITUDE, ATTR_BATTERY_LEVEL) - +DEPENDENCIES = ['mqtt'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mqtt_room/sensor.py b/homeassistant/components/mqtt_room/sensor.py index d0b84b1a889..961769711a4 100644 --- a/homeassistant/components/mqtt_room/sensor.py +++ b/homeassistant/components/mqtt_room/sensor.py @@ -17,7 +17,7 @@ from homeassistant.util import dt, slugify _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['mqtt'] ATTR_DEVICE_ID = 'device_id' ATTR_DISTANCE = 'distance' diff --git a/homeassistant/components/mqtt_statestream/__init__.py b/homeassistant/components/mqtt_statestream/__init__.py index 764ee46e57e..18a70bf75bb 100644 --- a/homeassistant/components/mqtt_statestream/__init__.py +++ b/homeassistant/components/mqtt_statestream/__init__.py @@ -16,7 +16,7 @@ CONF_BASE_TOPIC = 'base_topic' CONF_PUBLISH_ATTRIBUTES = 'publish_attributes' CONF_PUBLISH_TIMESTAMPS = 'publish_timestamps' - +DEPENDENCIES = ['mqtt'] DOMAIN = 'mqtt_statestream' CONFIG_SCHEMA = vol.Schema({ diff --git a/homeassistant/components/mvglive/sensor.py b/homeassistant/components/mvglive/sensor.py index c96b729c1a7..978c9ad34eb 100644 --- a/homeassistant/components/mvglive/sensor.py +++ b/homeassistant/components/mvglive/sensor.py @@ -11,7 +11,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( CONF_NAME, ATTR_ATTRIBUTION) - +REQUIREMENTS = ['PyMVGLive==1.1.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mychevy/__init__.py b/homeassistant/components/mychevy/__init__.py index 6fce266fe42..e6fd7f19c2a 100644 --- a/homeassistant/components/mychevy/__init__.py +++ b/homeassistant/components/mychevy/__init__.py @@ -11,7 +11,7 @@ from homeassistant.helpers import config_validation as cv from homeassistant.helpers import discovery from homeassistant.util import Throttle - +REQUIREMENTS = ['mychevy==1.2.0'] DOMAIN = 'mychevy' UPDATE_TOPIC = DOMAIN diff --git a/homeassistant/components/mycroft/__init__.py b/homeassistant/components/mycroft/__init__.py index 1b78280907f..29f6383f686 100644 --- a/homeassistant/components/mycroft/__init__.py +++ b/homeassistant/components/mycroft/__init__.py @@ -7,7 +7,7 @@ from homeassistant.const import CONF_HOST from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['mycroftapi==2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mycroft/notify.py b/homeassistant/components/mycroft/notify.py index 1583e52b628..d66be629f17 100644 --- a/homeassistant/components/mycroft/notify.py +++ b/homeassistant/components/mycroft/notify.py @@ -3,7 +3,7 @@ import logging from homeassistant.components.notify import BaseNotificationService - +DEPENDENCIES = ['mycroft'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/myq/cover.py b/homeassistant/components/myq/cover.py index 807bc212a54..5b926a183f7 100644 --- a/homeassistant/components/myq/cover.py +++ b/homeassistant/components/myq/cover.py @@ -11,7 +11,7 @@ from homeassistant.const import ( ) from homeassistant.helpers import aiohttp_client, config_validation as cv - +REQUIREMENTS = ['pymyq==1.2.0'] _LOGGER = logging.getLogger(__name__) MYQ_TO_HASS = { diff --git a/homeassistant/components/mysensors/__init__.py b/homeassistant/components/mysensors/__init__.py index 78c74a06d3e..7ca21ac582a 100644 --- a/homeassistant/components/mysensors/__init__.py +++ b/homeassistant/components/mysensors/__init__.py @@ -17,7 +17,7 @@ from .const import ( from .device import get_mysensors_devices from .gateway import get_mysensors_gateway, setup_gateways, finish_setup - +REQUIREMENTS = ['pymysensors==0.18.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mystrom/binary_sensor.py b/homeassistant/components/mystrom/binary_sensor.py index d178a00e1cb..42245dc4df3 100644 --- a/homeassistant/components/mystrom/binary_sensor.py +++ b/homeassistant/components/mystrom/binary_sensor.py @@ -7,7 +7,7 @@ from homeassistant.const import HTTP_UNPROCESSABLE_ENTITY _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['http'] async def async_setup_platform(hass, config, async_add_entities, diff --git a/homeassistant/components/mystrom/light.py b/homeassistant/components/mystrom/light.py index bb5acd29ffa..f9b8dcd203b 100644 --- a/homeassistant/components/mystrom/light.py +++ b/homeassistant/components/mystrom/light.py @@ -10,7 +10,7 @@ from homeassistant.components.light import ( ATTR_HS_COLOR) from homeassistant.const import CONF_HOST, CONF_MAC, CONF_NAME - +REQUIREMENTS = ['python-mystrom==0.5.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/mystrom/switch.py b/homeassistant/components/mystrom/switch.py index 480e96224d7..a25517eea91 100644 --- a/homeassistant/components/mystrom/switch.py +++ b/homeassistant/components/mystrom/switch.py @@ -7,7 +7,7 @@ from homeassistant.components.switch import (SwitchDevice, PLATFORM_SCHEMA) from homeassistant.const import (CONF_NAME, CONF_HOST) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['python-mystrom==0.5.0'] DEFAULT_NAME = 'myStrom Switch' diff --git a/homeassistant/components/mythicbeastsdns/__init__.py b/homeassistant/components/mythicbeastsdns/__init__.py index 6143dbe53df..4db53bf0407 100644 --- a/homeassistant/components/mythicbeastsdns/__init__.py +++ b/homeassistant/components/mythicbeastsdns/__init__.py @@ -11,7 +11,7 @@ from homeassistant.const import ( from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.event import async_track_time_interval - +REQUIREMENTS = ['mbddns==0.1.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/n26/__init__.py b/homeassistant/components/n26/__init__.py index 644ae84bae7..8f4ade9c87f 100644 --- a/homeassistant/components/n26/__init__.py +++ b/homeassistant/components/n26/__init__.py @@ -12,7 +12,7 @@ from homeassistant.util import Throttle from .const import DATA, DOMAIN - +REQUIREMENTS = ['n26==0.2.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/n26/sensor.py b/homeassistant/components/n26/sensor.py index ef5f944ac18..682cd5dae68 100644 --- a/homeassistant/components/n26/sensor.py +++ b/homeassistant/components/n26/sensor.py @@ -8,7 +8,7 @@ from .const import DATA _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['n26'] SCAN_INTERVAL = DEFAULT_SCAN_INTERVAL diff --git a/homeassistant/components/n26/switch.py b/homeassistant/components/n26/switch.py index f6b15c64c21..0e7455ea703 100644 --- a/homeassistant/components/n26/switch.py +++ b/homeassistant/components/n26/switch.py @@ -8,7 +8,7 @@ from .const import CARD_STATE_ACTIVE, CARD_STATE_BLOCKED, DATA _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['n26'] SCAN_INTERVAL = DEFAULT_SCAN_INTERVAL diff --git a/homeassistant/components/nad/media_player.py b/homeassistant/components/nad/media_player.py index c841adadcd0..8c5a14a3524 100644 --- a/homeassistant/components/nad/media_player.py +++ b/homeassistant/components/nad/media_player.py @@ -11,7 +11,7 @@ from homeassistant.components.media_player.const import ( SUPPORT_VOLUME_MUTE, SUPPORT_VOLUME_SET, SUPPORT_VOLUME_STEP) from homeassistant.const import CONF_NAME, STATE_OFF, STATE_ON, CONF_HOST - +REQUIREMENTS = ['nad_receiver==0.0.11'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/namecheapdns/__init__.py b/homeassistant/components/namecheapdns/__init__.py index 4de7e5932fa..f86e7d18556 100644 --- a/homeassistant/components/namecheapdns/__init__.py +++ b/homeassistant/components/namecheapdns/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_DOMAIN from homeassistant.helpers.event import async_track_time_interval from homeassistant.helpers.aiohttp_client import async_get_clientsession - +REQUIREMENTS = ['defusedxml==0.5.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nanoleaf/light.py b/homeassistant/components/nanoleaf/light.py index 93fd8d0bbb7..60457e21f9a 100644 --- a/homeassistant/components/nanoleaf/light.py +++ b/homeassistant/components/nanoleaf/light.py @@ -15,7 +15,7 @@ from homeassistant.util.color import \ color_temperature_mired_to_kelvin as mired_to_kelvin from homeassistant.util.json import load_json, save_json - +REQUIREMENTS = ['pynanoleaf==0.0.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/neato/__init__.py b/homeassistant/components/neato/__init__.py index e03f5754d38..bb717b8d230 100644 --- a/homeassistant/components/neato/__init__.py +++ b/homeassistant/components/neato/__init__.py @@ -10,7 +10,7 @@ from homeassistant.const import CONF_PASSWORD, CONF_USERNAME from homeassistant.helpers import discovery from homeassistant.util import Throttle - +REQUIREMENTS = ['pybotvac==0.0.13'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/neato/camera.py b/homeassistant/components/neato/camera.py index 19a681fe2c6..f8106c3e645 100644 --- a/homeassistant/components/neato/camera.py +++ b/homeassistant/components/neato/camera.py @@ -8,7 +8,7 @@ from . import NEATO_LOGIN, NEATO_MAP_DATA, NEATO_ROBOTS _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['neato'] SCAN_INTERVAL = timedelta(minutes=10) diff --git a/homeassistant/components/neato/switch.py b/homeassistant/components/neato/switch.py index 68e6bd22875..ea60f9492e2 100644 --- a/homeassistant/components/neato/switch.py +++ b/homeassistant/components/neato/switch.py @@ -11,7 +11,7 @@ from . import NEATO_LOGIN, NEATO_ROBOTS _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['neato'] SCAN_INTERVAL = timedelta(minutes=10) diff --git a/homeassistant/components/neato/vacuum.py b/homeassistant/components/neato/vacuum.py index e36403238c5..3575301ea97 100644 --- a/homeassistant/components/neato/vacuum.py +++ b/homeassistant/components/neato/vacuum.py @@ -21,7 +21,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['neato'] SCAN_INTERVAL = timedelta(minutes=5) diff --git a/homeassistant/components/nederlandse_spoorwegen/sensor.py b/homeassistant/components/nederlandse_spoorwegen/sensor.py index 52442d7e6f5..224d16e4869 100644 --- a/homeassistant/components/nederlandse_spoorwegen/sensor.py +++ b/homeassistant/components/nederlandse_spoorwegen/sensor.py @@ -12,7 +12,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['nsapi==2.7.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nello/lock.py b/homeassistant/components/nello/lock.py index ed8a36e9abb..efb7719e201 100644 --- a/homeassistant/components/nello/lock.py +++ b/homeassistant/components/nello/lock.py @@ -8,7 +8,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.components.lock import (LockDevice, PLATFORM_SCHEMA) from homeassistant.const import (CONF_PASSWORD, CONF_USERNAME) - +REQUIREMENTS = ['pynello==2.0.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ness_alarm/__init__.py b/homeassistant/components/ness_alarm/__init__.py index aa9ca038177..97896f9aa3f 100644 --- a/homeassistant/components/ness_alarm/__init__.py +++ b/homeassistant/components/ness_alarm/__init__.py @@ -13,7 +13,7 @@ from homeassistant.helpers import config_validation as cv from homeassistant.helpers.discovery import async_load_platform from homeassistant.helpers.dispatcher import async_dispatcher_send - +REQUIREMENTS = ['nessclient==0.9.15'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ness_alarm/alarm_control_panel.py b/homeassistant/components/ness_alarm/alarm_control_panel.py index 5860f79215e..618297ef9a5 100644 --- a/homeassistant/components/ness_alarm/alarm_control_panel.py +++ b/homeassistant/components/ness_alarm/alarm_control_panel.py @@ -13,7 +13,7 @@ from . import DATA_NESS, SIGNAL_ARMING_STATE_CHANGED _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['ness_alarm'] async def async_setup_platform(hass, config, async_add_entities, diff --git a/homeassistant/components/ness_alarm/binary_sensor.py b/homeassistant/components/ness_alarm/binary_sensor.py index 193275bfcdc..2bed9eb6404 100644 --- a/homeassistant/components/ness_alarm/binary_sensor.py +++ b/homeassistant/components/ness_alarm/binary_sensor.py @@ -9,7 +9,7 @@ from . import ( CONF_ZONE_ID, CONF_ZONE_NAME, CONF_ZONE_TYPE, CONF_ZONES, SIGNAL_ZONE_CHANGED, ZoneChangedData) - +DEPENDENCIES = ['ness_alarm'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nest/__init__.py b/homeassistant/components/nest/__init__.py index 131fdf10173..21aaa2109a1 100644 --- a/homeassistant/components/nest/__init__.py +++ b/homeassistant/components/nest/__init__.py @@ -22,7 +22,7 @@ from homeassistant.helpers.entity import Entity from .const import DOMAIN from . import local_auth - +REQUIREMENTS = ['python-nest==4.1.0'] _CONFIGURING = {} _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nest/binary_sensor.py b/homeassistant/components/nest/binary_sensor.py index 64e7716d0ff..aa56bfbf29d 100644 --- a/homeassistant/components/nest/binary_sensor.py +++ b/homeassistant/components/nest/binary_sensor.py @@ -10,7 +10,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['nest'] BINARY_TYPES = {'online': 'connectivity'} diff --git a/homeassistant/components/nest/camera.py b/homeassistant/components/nest/camera.py index 7089bff85df..8b450e02b46 100644 --- a/homeassistant/components/nest/camera.py +++ b/homeassistant/components/nest/camera.py @@ -11,7 +11,7 @@ from homeassistant.util.dt import utcnow _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['nest'] NEST_BRAND = 'Nest' diff --git a/homeassistant/components/nest/climate.py b/homeassistant/components/nest/climate.py index a72b3d8ba8b..cd9a7cb71b6 100644 --- a/homeassistant/components/nest/climate.py +++ b/homeassistant/components/nest/climate.py @@ -16,7 +16,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect from . import DATA_NEST, DOMAIN as NEST_DOMAIN, SIGNAL_NEST_UPDATE - +DEPENDENCIES = ['nest'] _LOGGER = logging.getLogger(__name__) PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ diff --git a/homeassistant/components/nest/sensor.py b/homeassistant/components/nest/sensor.py index df0bb07a4b0..ecae83e303c 100644 --- a/homeassistant/components/nest/sensor.py +++ b/homeassistant/components/nest/sensor.py @@ -8,7 +8,7 @@ from homeassistant.const import ( from . import CONF_SENSORS, DATA_NEST, DATA_NEST_CONFIG, NestSensorDevice - +DEPENDENCIES = ['nest'] SENSOR_TYPES = ['humidity', 'operation_mode', 'hvac_state'] diff --git a/homeassistant/components/netatmo/__init__.py b/homeassistant/components/netatmo/__init__.py index d6d76ecede6..2036e55b3a8 100644 --- a/homeassistant/components/netatmo/__init__.py +++ b/homeassistant/components/netatmo/__init__.py @@ -12,8 +12,8 @@ from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle - - +REQUIREMENTS = ['pyatmo==1.9'] +DEPENDENCIES = ['webhook'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/netatmo/binary_sensor.py b/homeassistant/components/netatmo/binary_sensor.py index 2e1feeb5c46..a11ce6bddf7 100644 --- a/homeassistant/components/netatmo/binary_sensor.py +++ b/homeassistant/components/netatmo/binary_sensor.py @@ -12,7 +12,7 @@ from . import CameraData _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['netatmo'] # These are the available sensors mapped to binary_sensor class WELCOME_SENSOR_TYPES = { diff --git a/homeassistant/components/netatmo/camera.py b/homeassistant/components/netatmo/camera.py index 4a56586761e..6b80c3061b5 100644 --- a/homeassistant/components/netatmo/camera.py +++ b/homeassistant/components/netatmo/camera.py @@ -11,7 +11,7 @@ from homeassistant.helpers import config_validation as cv from . import CameraData - +DEPENDENCIES = ['netatmo'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/netatmo/climate.py b/homeassistant/components/netatmo/climate.py index 348c47aa84b..d0537c5912b 100644 --- a/homeassistant/components/netatmo/climate.py +++ b/homeassistant/components/netatmo/climate.py @@ -14,7 +14,7 @@ from homeassistant.const import ( STATE_OFF, TEMP_CELSIUS, ATTR_TEMPERATURE, CONF_NAME) from homeassistant.util import Throttle - +DEPENDENCIES = ['netatmo'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/netatmo/sensor.py b/homeassistant/components/netatmo/sensor.py index 67172a88b58..307b76ca434 100644 --- a/homeassistant/components/netatmo/sensor.py +++ b/homeassistant/components/netatmo/sensor.py @@ -17,7 +17,7 @@ _LOGGER = logging.getLogger(__name__) CONF_MODULES = 'modules' CONF_STATION = 'station' - +DEPENDENCIES = ['netatmo'] # This is the NetAtmo data upload interval in seconds NETATMO_UPDATE_INTERVAL = 600 diff --git a/homeassistant/components/netatmo_public/sensor.py b/homeassistant/components/netatmo_public/sensor.py index f464ef6a647..3480534436d 100644 --- a/homeassistant/components/netatmo_public/sensor.py +++ b/homeassistant/components/netatmo_public/sensor.py @@ -14,7 +14,7 @@ from homeassistant.util import Throttle _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['netatmo'] CONF_AREAS = 'areas' CONF_LAT_NE = 'lat_ne' diff --git a/homeassistant/components/netdata/sensor.py b/homeassistant/components/netdata/sensor.py index 645ce35f6da..6d99722a416 100644 --- a/homeassistant/components/netdata/sensor.py +++ b/homeassistant/components/netdata/sensor.py @@ -13,7 +13,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['netdata==0.1.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/netgear/device_tracker.py b/homeassistant/components/netgear/device_tracker.py index bde212257f1..ce8c2d6066d 100644 --- a/homeassistant/components/netgear/device_tracker.py +++ b/homeassistant/components/netgear/device_tracker.py @@ -10,7 +10,7 @@ from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_PORT, CONF_SSL, CONF_DEVICES, CONF_EXCLUDE) - +REQUIREMENTS = ['pynetgear==0.5.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/netgear_lte/__init__.py b/homeassistant/components/netgear_lte/__init__.py index 4fddc122992..c0f248a3dd5 100644 --- a/homeassistant/components/netgear_lte/__init__.py +++ b/homeassistant/components/netgear_lte/__init__.py @@ -24,7 +24,7 @@ from homeassistant.helpers.event import async_track_time_interval from . import sensor_types - +REQUIREMENTS = ['eternalegypt==0.0.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/netgear_lte/binary_sensor.py b/homeassistant/components/netgear_lte/binary_sensor.py index 86ae877e674..a26c8538ea5 100644 --- a/homeassistant/components/netgear_lte/binary_sensor.py +++ b/homeassistant/components/netgear_lte/binary_sensor.py @@ -7,7 +7,7 @@ from homeassistant.exceptions import PlatformNotReady from . import CONF_MONITORED_CONDITIONS, DATA_KEY, LTEEntity from .sensor_types import BINARY_SENSOR_CLASSES - +DEPENDENCIES = ['netgear_lte'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/netgear_lte/notify.py b/homeassistant/components/netgear_lte/notify.py index 20d1c950f16..fba1a335ace 100644 --- a/homeassistant/components/netgear_lte/notify.py +++ b/homeassistant/components/netgear_lte/notify.py @@ -8,7 +8,7 @@ from homeassistant.components.notify import ( from . import CONF_RECIPIENT, DATA_KEY - +DEPENDENCIES = ['netgear_lte'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/netgear_lte/sensor.py b/homeassistant/components/netgear_lte/sensor.py index f05ba7edd36..238a5f9b72d 100644 --- a/homeassistant/components/netgear_lte/sensor.py +++ b/homeassistant/components/netgear_lte/sensor.py @@ -8,7 +8,7 @@ from . import CONF_MONITORED_CONDITIONS, DATA_KEY, LTEEntity from .sensor_types import ( SENSOR_SMS, SENSOR_SMS_TOTAL, SENSOR_USAGE, SENSOR_UNITS) - +DEPENDENCIES = ['netgear_lte'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/netio/switch.py b/homeassistant/components/netio/switch.py index 3bd630e8ace..27a7dfbd5e7 100644 --- a/homeassistant/components/netio/switch.py +++ b/homeassistant/components/netio/switch.py @@ -14,7 +14,7 @@ from homeassistant.const import ( from homeassistant.components.switch import (SwitchDevice, PLATFORM_SCHEMA) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pynetio==0.1.9.1'] _LOGGER = logging.getLogger(__name__) @@ -25,7 +25,7 @@ CONF_OUTLETS = 'outlets' DEFAULT_PORT = 1234 DEFAULT_USERNAME = 'admin' - +DEPENDENCIES = ['http'] Device = namedtuple('device', ['netio', 'entities']) DEVICES = {} diff --git a/homeassistant/components/neurio_energy/sensor.py b/homeassistant/components/neurio_energy/sensor.py index 17287ee881b..9e12465c69b 100644 --- a/homeassistant/components/neurio_energy/sensor.py +++ b/homeassistant/components/neurio_energy/sensor.py @@ -13,7 +13,7 @@ from homeassistant.util import Throttle import homeassistant.helpers.config_validation as cv import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['neurio==0.3.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/niko_home_control/light.py b/homeassistant/components/niko_home_control/light.py index 5a0f35cb9de..00e8dc838a6 100644 --- a/homeassistant/components/niko_home_control/light.py +++ b/homeassistant/components/niko_home_control/light.py @@ -9,7 +9,7 @@ from homeassistant.const import CONF_HOST from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['niko-home-control==0.1.8'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nilu/air_quality.py b/homeassistant/components/nilu/air_quality.py index b3bb83683e0..979d5736d6a 100644 --- a/homeassistant/components/nilu/air_quality.py +++ b/homeassistant/components/nilu/air_quality.py @@ -11,7 +11,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle - +REQUIREMENTS = ['niluclient==0.1.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nissan_leaf/__init__.py b/homeassistant/components/nissan_leaf/__init__.py index 024bbf7cc60..cb101c0a530 100644 --- a/homeassistant/components/nissan_leaf/__init__.py +++ b/homeassistant/components/nissan_leaf/__init__.py @@ -16,7 +16,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.helpers.event import async_track_point_in_utc_time from homeassistant.util.dt import utcnow - +REQUIREMENTS = ['pycarwings2==2.8'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nissan_leaf/binary_sensor.py b/homeassistant/components/nissan_leaf/binary_sensor.py index e61a964eb77..5c71cf1fc51 100644 --- a/homeassistant/components/nissan_leaf/binary_sensor.py +++ b/homeassistant/components/nissan_leaf/binary_sensor.py @@ -7,7 +7,7 @@ from . import DATA_CHARGING, DATA_LEAF, DATA_PLUGGED_IN, LeafEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['nissan_leaf'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/nissan_leaf/device_tracker.py b/homeassistant/components/nissan_leaf/device_tracker.py index 963b6e19e46..95f6fcdcaf1 100644 --- a/homeassistant/components/nissan_leaf/device_tracker.py +++ b/homeassistant/components/nissan_leaf/device_tracker.py @@ -8,7 +8,7 @@ from . import DATA_LEAF, DATA_LOCATION, SIGNAL_UPDATE_LEAF _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['nissan_leaf'] ICON_CAR = "mdi:car" diff --git a/homeassistant/components/nissan_leaf/sensor.py b/homeassistant/components/nissan_leaf/sensor.py index 19de2360ae7..682f482b488 100644 --- a/homeassistant/components/nissan_leaf/sensor.py +++ b/homeassistant/components/nissan_leaf/sensor.py @@ -12,7 +12,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['nissan_leaf'] ICON_RANGE = 'mdi:speedometer' diff --git a/homeassistant/components/nissan_leaf/switch.py b/homeassistant/components/nissan_leaf/switch.py index 0de5e14886e..e6d72103a6c 100644 --- a/homeassistant/components/nissan_leaf/switch.py +++ b/homeassistant/components/nissan_leaf/switch.py @@ -7,7 +7,7 @@ from . import DATA_CLIMATE, DATA_LEAF, LeafEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['nissan_leaf'] def setup_platform(hass, config, add_devices, discovery_info=None): diff --git a/homeassistant/components/nmap_tracker/device_tracker.py b/homeassistant/components/nmap_tracker/device_tracker.py index a7d4969ecb0..e553d323b72 100644 --- a/homeassistant/components/nmap_tracker/device_tracker.py +++ b/homeassistant/components/nmap_tracker/device_tracker.py @@ -13,7 +13,7 @@ from homeassistant.components.device_tracker import ( DOMAIN, PLATFORM_SCHEMA, DeviceScanner) from homeassistant.const import CONF_HOSTS - +REQUIREMENTS = ['python-nmap==0.6.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nmbs/sensor.py b/homeassistant/components/nmbs/sensor.py index d628676d67f..034c37530b3 100644 --- a/homeassistant/components/nmbs/sensor.py +++ b/homeassistant/components/nmbs/sensor.py @@ -23,7 +23,7 @@ CONF_STATION_TO = 'station_to' CONF_STATION_LIVE = 'station_live' CONF_EXCLUDE_VIAS = 'exclude_vias' - +REQUIREMENTS = ["pyrail==0.0.3"] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_STATION_FROM): cv.string, diff --git a/homeassistant/components/noaa_tides/sensor.py b/homeassistant/components/noaa_tides/sensor.py index 07c7cd92a0e..0c4bde94f57 100644 --- a/homeassistant/components/noaa_tides/sensor.py +++ b/homeassistant/components/noaa_tides/sensor.py @@ -10,7 +10,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['py_noaa==0.3.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/norway_air/air_quality.py b/homeassistant/components/norway_air/air_quality.py index f99d5271893..06ed68801f8 100644 --- a/homeassistant/components/norway_air/air_quality.py +++ b/homeassistant/components/norway_air/air_quality.py @@ -12,7 +12,7 @@ from homeassistant.const import (CONF_LATITUDE, CONF_LONGITUDE, from homeassistant.helpers.aiohttp_client import async_get_clientsession - +REQUIREMENTS = ['pyMetno==0.4.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nsw_fuel_station/sensor.py b/homeassistant/components/nsw_fuel_station/sensor.py index d78630c70e7..ce4337fc93a 100644 --- a/homeassistant/components/nsw_fuel_station/sensor.py +++ b/homeassistant/components/nsw_fuel_station/sensor.py @@ -11,7 +11,7 @@ from homeassistant.const import ATTR_ATTRIBUTION from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['nsw-fuel-api-client==1.0.10'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py b/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py index 2e012eb7676..38491feb32f 100644 --- a/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py +++ b/homeassistant/components/nsw_rural_fire_service_feed/geo_location.py @@ -16,7 +16,7 @@ from homeassistant.helpers.dispatcher import ( async_dispatcher_connect, dispatcher_send) from homeassistant.helpers.event import track_time_interval - +REQUIREMENTS = ['geojson_client==0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nuheat/__init__.py b/homeassistant/components/nuheat/__init__.py index 456ce3fb040..4ea37339ef3 100644 --- a/homeassistant/components/nuheat/__init__.py +++ b/homeassistant/components/nuheat/__init__.py @@ -7,7 +7,7 @@ from homeassistant.const import CONF_USERNAME, CONF_PASSWORD, CONF_DEVICES from homeassistant.helpers import config_validation as cv from homeassistant.helpers import discovery - +REQUIREMENTS = ["nuheat==0.3.0"] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nuheat/climate.py b/homeassistant/components/nuheat/climate.py index 573dc12b3aa..32adc1d216f 100644 --- a/homeassistant/components/nuheat/climate.py +++ b/homeassistant/components/nuheat/climate.py @@ -15,7 +15,7 @@ from homeassistant.util import Throttle from . import DOMAIN as NUHEAT_DOMAIN - +DEPENDENCIES = ["nuheat"] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nuki/lock.py b/homeassistant/components/nuki/lock.py index 972e21f73bb..ef49d4b97dd 100644 --- a/homeassistant/components/nuki/lock.py +++ b/homeassistant/components/nuki/lock.py @@ -10,7 +10,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.service import extract_entity_ids - +REQUIREMENTS = ['pynuki==1.3.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nut/sensor.py b/homeassistant/components/nut/sensor.py index 9ddffc832ba..43ba06f70eb 100644 --- a/homeassistant/components/nut/sensor.py +++ b/homeassistant/components/nut/sensor.py @@ -14,7 +14,7 @@ from homeassistant.exceptions import PlatformNotReady from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['pynut2==2.1.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nx584/alarm_control_panel.py b/homeassistant/components/nx584/alarm_control_panel.py index 5762e1c65a8..c5e1fede6fd 100644 --- a/homeassistant/components/nx584/alarm_control_panel.py +++ b/homeassistant/components/nx584/alarm_control_panel.py @@ -11,7 +11,7 @@ from homeassistant.const import ( STATE_ALARM_ARMED_HOME, STATE_ALARM_DISARMED, STATE_ALARM_TRIGGERED) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pynx584==0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/nx584/binary_sensor.py b/homeassistant/components/nx584/binary_sensor.py index b175e180af2..61f8fb801ea 100644 --- a/homeassistant/components/nx584/binary_sensor.py +++ b/homeassistant/components/nx584/binary_sensor.py @@ -11,7 +11,7 @@ from homeassistant.components.binary_sensor import ( from homeassistant.const import (CONF_HOST, CONF_PORT) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pynx584==0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/oasa_telematics/sensor.py b/homeassistant/components/oasa_telematics/sensor.py index 35f1d44e579..665f2f83f86 100644 --- a/homeassistant/components/oasa_telematics/sensor.py +++ b/homeassistant/components/oasa_telematics/sensor.py @@ -12,7 +12,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity from homeassistant.util import dt as dt_util - +REQUIREMENTS = ['oasatelematics==0.3'] _LOGGER = logging.getLogger(__name__) ATTR_STOP_ID = 'stop_id' diff --git a/homeassistant/components/octoprint/binary_sensor.py b/homeassistant/components/octoprint/binary_sensor.py index a048d8196b4..be3381f3bc8 100644 --- a/homeassistant/components/octoprint/binary_sensor.py +++ b/homeassistant/components/octoprint/binary_sensor.py @@ -9,7 +9,7 @@ from . import BINARY_SENSOR_TYPES, DOMAIN as COMPONENT_DOMAIN _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['octoprint'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/octoprint/sensor.py b/homeassistant/components/octoprint/sensor.py index 2d8fc400a24..f07d88d11da 100644 --- a/homeassistant/components/octoprint/sensor.py +++ b/homeassistant/components/octoprint/sensor.py @@ -10,7 +10,7 @@ from . import DOMAIN as COMPONENT_DOMAIN, SENSOR_TYPES _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['octoprint'] NOTIFICATION_ID = 'octoprint_notification' NOTIFICATION_TITLE = 'OctoPrint sensor setup error' diff --git a/homeassistant/components/oem/climate.py b/homeassistant/components/oem/climate.py index 72026a96c36..f1e03396b05 100644 --- a/homeassistant/components/oem/climate.py +++ b/homeassistant/components/oem/climate.py @@ -21,7 +21,7 @@ from homeassistant.const import ( CONF_PORT, TEMP_CELSIUS, CONF_NAME) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['oemthermostat==1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ohmconnect/sensor.py b/homeassistant/components/ohmconnect/sensor.py index 90c9a8ace69..1d870e4d15a 100644 --- a/homeassistant/components/ohmconnect/sensor.py +++ b/homeassistant/components/ohmconnect/sensor.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['defusedxml==0.5.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/onboarding/__init__.py b/homeassistant/components/onboarding/__init__.py index e3879dda8e2..f8885962ee7 100644 --- a/homeassistant/components/onboarding/__init__.py +++ b/homeassistant/components/onboarding/__init__.py @@ -4,7 +4,7 @@ from homeassistant.loader import bind_hass from .const import DOMAIN, STEP_USER, STEPS - +DEPENDENCIES = ['auth', 'http'] STORAGE_KEY = DOMAIN STORAGE_VERSION = 1 diff --git a/homeassistant/components/onkyo/media_player.py b/homeassistant/components/onkyo/media_player.py index 7765b3fb5d7..64b9684c58c 100644 --- a/homeassistant/components/onkyo/media_player.py +++ b/homeassistant/components/onkyo/media_player.py @@ -16,7 +16,7 @@ from homeassistant.const import ( CONF_HOST, CONF_NAME, STATE_OFF, STATE_ON, ATTR_ENTITY_ID) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['onkyo-eiscp==1.2.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/onvif/camera.py b/homeassistant/components/onvif/camera.py index 1d96d15e2ab..90222b9cafc 100644 --- a/homeassistant/components/onvif/camera.py +++ b/homeassistant/components/onvif/camera.py @@ -23,7 +23,7 @@ _LOGGER = logging.getLogger(__name__) REQUIREMENTS = ['onvif-py3==0.1.3', 'suds-py3==1.3.3.0', 'suds-passworddigest-homeassistant==0.1.2a0.dev0'] - +DEPENDENCIES = ['ffmpeg'] DEFAULT_NAME = 'ONVIF Camera' DEFAULT_PORT = 5000 DEFAULT_USERNAME = 'admin' diff --git a/homeassistant/components/opencv/image_processing.py b/homeassistant/components/opencv/image_processing.py index 5dde6d0af3f..10173cdb725 100644 --- a/homeassistant/components/opencv/image_processing.py +++ b/homeassistant/components/opencv/image_processing.py @@ -11,7 +11,7 @@ from homeassistant.components.image_processing import ( from homeassistant.core import split_entity_id import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['numpy==1.16.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/openevse/sensor.py b/homeassistant/components/openevse/sensor.py index 772df87cd8e..e54b47236c5 100644 --- a/homeassistant/components/openevse/sensor.py +++ b/homeassistant/components/openevse/sensor.py @@ -11,7 +11,7 @@ from homeassistant.const import ( CONF_MONITORED_VARIABLES) from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['openevsewifi==0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/openhome/media_player.py b/homeassistant/components/openhome/media_player.py index bed651408d9..03926bce8c5 100644 --- a/homeassistant/components/openhome/media_player.py +++ b/homeassistant/components/openhome/media_player.py @@ -10,7 +10,7 @@ from homeassistant.components.media_player.const import ( from homeassistant.const import ( STATE_IDLE, STATE_OFF, STATE_PAUSED, STATE_PLAYING) - +REQUIREMENTS = ['openhomedevice==0.4.2'] SUPPORT_OPENHOME = SUPPORT_SELECT_SOURCE | \ SUPPORT_VOLUME_STEP | SUPPORT_VOLUME_MUTE | SUPPORT_VOLUME_SET | \ diff --git a/homeassistant/components/opensensemap/air_quality.py b/homeassistant/components/opensensemap/air_quality.py index 57deb9676ed..5407f65a1d8 100644 --- a/homeassistant/components/opensensemap/air_quality.py +++ b/homeassistant/components/opensensemap/air_quality.py @@ -11,7 +11,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle - +REQUIREMENTS = ['opensensemap-api==0.1.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/opentherm_gw/__init__.py b/homeassistant/components/opentherm_gw/__init__.py index 1abd07d47ec..1476363c6bd 100644 --- a/homeassistant/components/opentherm_gw/__init__.py +++ b/homeassistant/components/opentherm_gw/__init__.py @@ -15,7 +15,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_send import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyotgw==0.4b3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/opentherm_gw/binary_sensor.py b/homeassistant/components/opentherm_gw/binary_sensor.py index 2df8207a045..d0b60a25770 100644 --- a/homeassistant/components/opentherm_gw/binary_sensor.py +++ b/homeassistant/components/opentherm_gw/binary_sensor.py @@ -14,7 +14,7 @@ DEVICE_CLASS_COLD = 'cold' DEVICE_CLASS_HEAT = 'heat' DEVICE_CLASS_PROBLEM = 'problem' - +DEPENDENCIES = ['opentherm_gw'] async def async_setup_platform( diff --git a/homeassistant/components/opentherm_gw/climate.py b/homeassistant/components/opentherm_gw/climate.py index 6cf0b86a3cb..60f1901d43e 100644 --- a/homeassistant/components/opentherm_gw/climate.py +++ b/homeassistant/components/opentherm_gw/climate.py @@ -15,7 +15,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['opentherm_gw'] SUPPORT_FLAGS = SUPPORT_TARGET_TEMPERATURE diff --git a/homeassistant/components/opentherm_gw/sensor.py b/homeassistant/components/opentherm_gw/sensor.py index fa06f362977..5c64b8ab719 100644 --- a/homeassistant/components/opentherm_gw/sensor.py +++ b/homeassistant/components/opentherm_gw/sensor.py @@ -16,7 +16,7 @@ UNIT_KW = 'kW' UNIT_L_MIN = 'L/min' UNIT_PERCENT = '%' - +DEPENDENCIES = ['opentherm_gw'] async def async_setup_platform( diff --git a/homeassistant/components/openuv/__init__.py b/homeassistant/components/openuv/__init__.py index 470ffe260f4..5533beb2fae 100644 --- a/homeassistant/components/openuv/__init__.py +++ b/homeassistant/components/openuv/__init__.py @@ -15,7 +15,7 @@ from homeassistant.helpers.entity import Entity from .config_flow import configured_instances from .const import DOMAIN - +REQUIREMENTS = ['pyopenuv==1.0.9'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/openuv/binary_sensor.py b/homeassistant/components/openuv/binary_sensor.py index f51286a9704..cfc82a75729 100644 --- a/homeassistant/components/openuv/binary_sensor.py +++ b/homeassistant/components/openuv/binary_sensor.py @@ -16,7 +16,7 @@ ATTR_PROTECTION_WINDOW_ENDING_UV = 'end_uv' ATTR_PROTECTION_WINDOW_STARTING_TIME = 'start_time' ATTR_PROTECTION_WINDOW_STARTING_UV = 'start_uv' - +DEPENDENCIES = ['openuv'] async def async_setup_platform( diff --git a/homeassistant/components/openuv/sensor.py b/homeassistant/components/openuv/sensor.py index 4473f3bcc8a..42780d57b3c 100644 --- a/homeassistant/components/openuv/sensor.py +++ b/homeassistant/components/openuv/sensor.py @@ -14,7 +14,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['openuv'] ATTR_MAX_UV_TIME = 'time' diff --git a/homeassistant/components/openweathermap/sensor.py b/homeassistant/components/openweathermap/sensor.py index 6ff83572bf5..5de67721e30 100644 --- a/homeassistant/components/openweathermap/sensor.py +++ b/homeassistant/components/openweathermap/sensor.py @@ -12,7 +12,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['pyowm==2.10.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/openweathermap/weather.py b/homeassistant/components/openweathermap/weather.py index 112cf8821b1..8a37bc97575 100644 --- a/homeassistant/components/openweathermap/weather.py +++ b/homeassistant/components/openweathermap/weather.py @@ -14,7 +14,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.util import Throttle from homeassistant.util.pressure import convert as convert_pressure - +REQUIREMENTS = ['pyowm==2.10.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/opple/light.py b/homeassistant/components/opple/light.py index 355bc786cc0..03e36dc179d 100644 --- a/homeassistant/components/opple/light.py +++ b/homeassistant/components/opple/light.py @@ -14,7 +14,7 @@ from homeassistant.util.color import \ from homeassistant.util.color import \ color_temperature_mired_to_kelvin as mired_to_kelvin - +REQUIREMENTS = ['pyoppleio==1.0.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/orvibo/switch.py b/homeassistant/components/orvibo/switch.py index afc9a22a166..c77e24446ec 100644 --- a/homeassistant/components/orvibo/switch.py +++ b/homeassistant/components/orvibo/switch.py @@ -8,7 +8,7 @@ from homeassistant.const import ( CONF_HOST, CONF_NAME, CONF_SWITCHES, CONF_MAC, CONF_DISCOVERY) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['orvibo==1.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/osramlightify/light.py b/homeassistant/components/osramlightify/light.py index 5cc2ed211e5..b880273fd1e 100644 --- a/homeassistant/components/osramlightify/light.py +++ b/homeassistant/components/osramlightify/light.py @@ -15,7 +15,7 @@ from homeassistant.const import CONF_HOST import homeassistant.helpers.config_validation as cv import homeassistant.util.color as color_util - +REQUIREMENTS = ['lightify==1.0.7.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/otp/sensor.py b/homeassistant/components/otp/sensor.py index 29bdcb13ef7..2ac4c519984 100644 --- a/homeassistant/components/otp/sensor.py +++ b/homeassistant/components/otp/sensor.py @@ -10,7 +10,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import (CONF_NAME, CONF_TOKEN) from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pyotp==2.2.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/owlet/__init__.py b/homeassistant/components/owlet/__init__.py index bafd3d15834..b7ad7ab9152 100644 --- a/homeassistant/components/owlet/__init__.py +++ b/homeassistant/components/owlet/__init__.py @@ -11,7 +11,7 @@ from .const import ( SENSOR_BASE_STATION, SENSOR_HEART_RATE, SENSOR_MOVEMENT, SENSOR_OXYGEN_LEVEL) - +REQUIREMENTS = ['pyowlet==1.0.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/owntracks/__init__.py b/homeassistant/components/owntracks/__init__.py index e45dc6ebab2..df6b815e4c5 100644 --- a/homeassistant/components/owntracks/__init__.py +++ b/homeassistant/components/owntracks/__init__.py @@ -16,12 +16,12 @@ from homeassistant.setup import async_when_setup from .config_flow import CONF_SECRET - +REQUIREMENTS = ['PyNaCl==1.3.0'] _LOGGER = logging.getLogger(__name__) DOMAIN = 'owntracks' - +DEPENDENCIES = ['webhook'] CONF_MAX_GPS_ACCURACY = 'max_gps_accuracy' CONF_WAYPOINT_IMPORT = 'waypoints' diff --git a/homeassistant/components/owntracks/device_tracker.py b/homeassistant/components/owntracks/device_tracker.py index 213e7f3a69e..69ea723d84c 100644 --- a/homeassistant/components/owntracks/device_tracker.py +++ b/homeassistant/components/owntracks/device_tracker.py @@ -10,7 +10,7 @@ from homeassistant.util import decorator, slugify from . import DOMAIN as OT_DOMAIN - +DEPENDENCIES = ['owntracks'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/panasonic_bluray/media_player.py b/homeassistant/components/panasonic_bluray/media_player.py index 40ecba61616..ebf71135d34 100644 --- a/homeassistant/components/panasonic_bluray/media_player.py +++ b/homeassistant/components/panasonic_bluray/media_player.py @@ -14,7 +14,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.util.dt import utcnow - +REQUIREMENTS = ['panacotta==0.1'] DEFAULT_NAME = "Panasonic Blu-Ray" SCAN_INTERVAL = timedelta(seconds=30) diff --git a/homeassistant/components/panasonic_viera/media_player.py b/homeassistant/components/panasonic_viera/media_player.py index 7aea89e9d2a..324becd0bf7 100644 --- a/homeassistant/components/panasonic_viera/media_player.py +++ b/homeassistant/components/panasonic_viera/media_player.py @@ -14,7 +14,7 @@ from homeassistant.const import ( CONF_HOST, CONF_MAC, CONF_NAME, CONF_PORT, STATE_OFF, STATE_ON) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['panasonic_viera==0.3.2', 'wakeonlan==1.1.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/pandora/media_player.py b/homeassistant/components/pandora/media_player.py index 2fc7b3dd1ab..32cde430d0e 100644 --- a/homeassistant/components/pandora/media_player.py +++ b/homeassistant/components/pandora/media_player.py @@ -16,7 +16,7 @@ from homeassistant.const import ( SERVICE_MEDIA_PLAY_PAUSE, SERVICE_VOLUME_DOWN, SERVICE_VOLUME_UP, STATE_IDLE, STATE_OFF, STATE_PAUSED, STATE_PLAYING) - +REQUIREMENTS = ['pexpect==4.6.0'] _LOGGER = logging.getLogger(__name__) # SUPPORT_VOLUME_SET is close to available but we need volume up/down diff --git a/homeassistant/components/panel_custom/__init__.py b/homeassistant/components/panel_custom/__init__.py index 1a3d2aabba8..7fe2191f4c4 100644 --- a/homeassistant/components/panel_custom/__init__.py +++ b/homeassistant/components/panel_custom/__init__.py @@ -10,7 +10,7 @@ from homeassistant.loader import bind_hass _LOGGER = logging.getLogger(__name__) DOMAIN = 'panel_custom' - +DEPENDENCIES = ['frontend'] CONF_COMPONENT_NAME = 'name' CONF_SIDEBAR_TITLE = 'sidebar_title' diff --git a/homeassistant/components/panel_iframe/__init__.py b/homeassistant/components/panel_iframe/__init__.py index bcc644f4bbe..9319dfcc6ad 100644 --- a/homeassistant/components/panel_iframe/__init__.py +++ b/homeassistant/components/panel_iframe/__init__.py @@ -4,7 +4,7 @@ import voluptuous as vol from homeassistant.const import CONF_ICON, CONF_URL import homeassistant.helpers.config_validation as cv - +DEPENDENCIES = ['frontend'] DOMAIN = 'panel_iframe' diff --git a/homeassistant/components/pencom/switch.py b/homeassistant/components/pencom/switch.py index 27682060685..d2c73d70d96 100644 --- a/homeassistant/components/pencom/switch.py +++ b/homeassistant/components/pencom/switch.py @@ -12,7 +12,7 @@ from homeassistant.const import CONF_HOST, CONF_PORT, CONF_NAME from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pencompy==0.0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/philips_js/media_player.py b/homeassistant/components/philips_js/media_player.py index 0ad581e8be1..f5eddff8d13 100644 --- a/homeassistant/components/philips_js/media_player.py +++ b/homeassistant/components/philips_js/media_player.py @@ -15,7 +15,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.script import Script - +REQUIREMENTS = ['ha-philipsjs==0.0.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/pi_hole/sensor.py b/homeassistant/components/pi_hole/sensor.py index 41c0a4c448e..805e17ebdff 100644 --- a/homeassistant/components/pi_hole/sensor.py +++ b/homeassistant/components/pi_hole/sensor.py @@ -13,7 +13,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['hole==0.3.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/piglow/light.py b/homeassistant/components/piglow/light.py index c2b0e12379e..dc3906b2002 100644 --- a/homeassistant/components/piglow/light.py +++ b/homeassistant/components/piglow/light.py @@ -11,7 +11,7 @@ from homeassistant.components.light import ( from homeassistant.const import CONF_NAME import homeassistant.util.color as color_util - +REQUIREMENTS = ['piglow==1.2.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/pilight/__init__.py b/homeassistant/components/pilight/__init__.py index 795c1dedeab..46be3b37204 100644 --- a/homeassistant/components/pilight/__init__.py +++ b/homeassistant/components/pilight/__init__.py @@ -14,7 +14,7 @@ from homeassistant.const import ( EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP, CONF_HOST, CONF_PORT, CONF_WHITELIST, CONF_PROTOCOL) - +REQUIREMENTS = ['pilight==0.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/pilight/binary_sensor.py b/homeassistant/components/pilight/binary_sensor.py index 534479e991a..131a91b5fc3 100644 --- a/homeassistant/components/pilight/binary_sensor.py +++ b/homeassistant/components/pilight/binary_sensor.py @@ -26,7 +26,7 @@ CONF_VARIABLE = 'variable' CONF_RESET_DELAY_SEC = 'reset_delay_sec' DEFAULT_NAME = 'Pilight Binary Sensor' - +DEPENDENCIES = ['pilight'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_VARIABLE): cv.string, diff --git a/homeassistant/components/pilight/sensor.py b/homeassistant/components/pilight/sensor.py index 370f2191287..c36151c90dc 100644 --- a/homeassistant/components/pilight/sensor.py +++ b/homeassistant/components/pilight/sensor.py @@ -15,7 +15,7 @@ _LOGGER = logging.getLogger(__name__) CONF_VARIABLE = 'variable' DEFAULT_NAME = 'Pilight Sensor' - +DEPENDENCIES = ['pilight'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_VARIABLE): cv.string, diff --git a/homeassistant/components/pilight/switch.py b/homeassistant/components/pilight/switch.py index b993f644ecc..d645d8e3013 100644 --- a/homeassistant/components/pilight/switch.py +++ b/homeassistant/components/pilight/switch.py @@ -21,7 +21,7 @@ CONF_UNIT = 'unit' CONF_UNITCODE = 'unitcode' CONF_ECHO = 'echo' - +DEPENDENCIES = ['pilight'] COMMAND_SCHEMA = vol.Schema({ vol.Optional(CONF_PROTOCOL): cv.string, diff --git a/homeassistant/components/pjlink/media_player.py b/homeassistant/components/pjlink/media_player.py index 4aaf8b5f506..ad7bdc9e77c 100644 --- a/homeassistant/components/pjlink/media_player.py +++ b/homeassistant/components/pjlink/media_player.py @@ -12,7 +12,7 @@ from homeassistant.const import ( CONF_HOST, CONF_NAME, CONF_PASSWORD, CONF_PORT, STATE_OFF, STATE_ON) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pypjlink2==1.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/plant/__init__.py b/homeassistant/components/plant/__init__.py index f0755bede44..27324ad57a3 100644 --- a/homeassistant/components/plant/__init__.py +++ b/homeassistant/components/plant/__init__.py @@ -89,7 +89,7 @@ PLANT_SCHEMA = vol.Schema({ }) DOMAIN = 'plant' - +DEPENDENCIES = ['zone', 'group'] GROUP_NAME_ALL_PLANTS = 'all plants' ENTITY_ID_ALL_PLANTS = group.ENTITY_ID_FORMAT.format('all_plants') diff --git a/homeassistant/components/plex/media_player.py b/homeassistant/components/plex/media_player.py index bd44819e4b8..f2af6836e3b 100644 --- a/homeassistant/components/plex/media_player.py +++ b/homeassistant/components/plex/media_player.py @@ -20,7 +20,7 @@ from homeassistant.helpers.event import track_utc_time_change from homeassistant.util import dt as dt_util from homeassistant.util.json import load_json, save_json - +REQUIREMENTS = ['plexapi==3.0.6'] _CONFIGURING = {} _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/plex/sensor.py b/homeassistant/components/plex/sensor.py index d2263c0d221..a3df6fdb41e 100644 --- a/homeassistant/components/plex/sensor.py +++ b/homeassistant/components/plex/sensor.py @@ -11,7 +11,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['plexapi==3.0.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/plum_lightpad/__init__.py b/homeassistant/components/plum_lightpad/__init__.py index 1aab1a1344b..5b99223d25a 100644 --- a/homeassistant/components/plum_lightpad/__init__.py +++ b/homeassistant/components/plum_lightpad/__init__.py @@ -10,7 +10,7 @@ from homeassistant.helpers import discovery from homeassistant.helpers.aiohttp_client import async_get_clientsession import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['plumlightpad==0.0.11'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/plum_lightpad/light.py b/homeassistant/components/plum_lightpad/light.py index 57dc8dedecc..233539560f4 100644 --- a/homeassistant/components/plum_lightpad/light.py +++ b/homeassistant/components/plum_lightpad/light.py @@ -5,7 +5,7 @@ import homeassistant.util.color as color_util from . import PLUM_DATA - +DEPENDENCIES = ['plum_lightpad'] async def async_setup_platform( diff --git a/homeassistant/components/pocketcasts/sensor.py b/homeassistant/components/pocketcasts/sensor.py index 85ecfb176f7..f09e9012004 100644 --- a/homeassistant/components/pocketcasts/sensor.py +++ b/homeassistant/components/pocketcasts/sensor.py @@ -10,7 +10,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import (CONF_USERNAME, CONF_PASSWORD) from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pocketcasts==0.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/point/__init__.py b/homeassistant/components/point/__init__.py index b00be14ef54..dc839756469 100644 --- a/homeassistant/components/point/__init__.py +++ b/homeassistant/components/point/__init__.py @@ -20,11 +20,11 @@ from .const import ( CONF_WEBHOOK_URL, DOMAIN, EVENT_RECEIVED, POINT_DISCOVERY_NEW, SCAN_INTERVAL, SIGNAL_UPDATE_ENTITY, SIGNAL_WEBHOOK) - +REQUIREMENTS = ['pypoint==1.1.1'] _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['webhook'] CONF_CLIENT_ID = 'client_id' CONF_CLIENT_SECRET = 'client_secret' diff --git a/homeassistant/components/pollen/sensor.py b/homeassistant/components/pollen/sensor.py index 57d740371f2..3fc4d1fce3d 100644 --- a/homeassistant/components/pollen/sensor.py +++ b/homeassistant/components/pollen/sensor.py @@ -13,7 +13,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['numpy==1.16.2', 'pypollencom==2.2.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/postnl/sensor.py b/homeassistant/components/postnl/sensor.py index 2aa6d3bf828..f9c8019cd31 100644 --- a/homeassistant/components/postnl/sensor.py +++ b/homeassistant/components/postnl/sensor.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['postnl_api==1.0.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/prezzibenzina/sensor.py b/homeassistant/components/prezzibenzina/sensor.py index e5b113a538d..525de7dad2f 100644 --- a/homeassistant/components/prezzibenzina/sensor.py +++ b/homeassistant/components/prezzibenzina/sensor.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.config_validation import PLATFORM_SCHEMA from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['prezzibenzina-py==1.1.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/proliphix/climate.py b/homeassistant/components/proliphix/climate.py index 0f0a9795d19..c165334201d 100644 --- a/homeassistant/components/proliphix/climate.py +++ b/homeassistant/components/proliphix/climate.py @@ -9,7 +9,7 @@ from homeassistant.const import ( ATTR_TEMPERATURE) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['proliphix==0.4.1'] ATTR_FAN = 'fan' diff --git a/homeassistant/components/prometheus/__init__.py b/homeassistant/components/prometheus/__init__.py index 40e0e96d540..de0de8ae162 100644 --- a/homeassistant/components/prometheus/__init__.py +++ b/homeassistant/components/prometheus/__init__.py @@ -14,14 +14,14 @@ from homeassistant.helpers import entityfilter, state as state_helper import homeassistant.helpers.config_validation as cv from homeassistant.util.temperature import fahrenheit_to_celsius - +REQUIREMENTS = ['prometheus_client==0.2.0'] _LOGGER = logging.getLogger(__name__) API_ENDPOINT = '/api/prometheus' DOMAIN = 'prometheus' - +DEPENDENCIES = ['http'] CONF_FILTER = 'filter' CONF_PROM_NAMESPACE = 'namespace' diff --git a/homeassistant/components/proximity/__init__.py b/homeassistant/components/proximity/__init__.py index 275094189a8..0a617bcec90 100644 --- a/homeassistant/components/proximity/__init__.py +++ b/homeassistant/components/proximity/__init__.py @@ -25,7 +25,7 @@ DEFAULT_DIST_TO_ZONE = 'not set' DEFAULT_NEAREST = 'not set' DEFAULT_PROXIMITY_ZONE = 'home' DEFAULT_TOLERANCE = 1 - +DEPENDENCIES = ['zone', 'device_tracker'] DOMAIN = 'proximity' UNITS = ['km', 'm', 'mi', 'ft'] diff --git a/homeassistant/components/proxy/camera.py b/homeassistant/components/proxy/camera.py index 8cecbe996e0..fda2cdea60e 100644 --- a/homeassistant/components/proxy/camera.py +++ b/homeassistant/components/proxy/camera.py @@ -12,7 +12,7 @@ from homeassistant.helpers import config_validation as cv from homeassistant.util.async_ import run_coroutine_threadsafe import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['pillow==5.4.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ps4/__init__.py b/homeassistant/components/ps4/__init__.py index 51915134a7b..191eb223707 100644 --- a/homeassistant/components/ps4/__init__.py +++ b/homeassistant/components/ps4/__init__.py @@ -9,7 +9,7 @@ from .const import DOMAIN # noqa: pylint: disable=unused-import _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pyps4-homeassistant==0.5.2'] async def async_setup(hass, config): diff --git a/homeassistant/components/ps4/media_player.py b/homeassistant/components/ps4/media_player.py index 5619190651d..4dc4fa0a317 100644 --- a/homeassistant/components/ps4/media_player.py +++ b/homeassistant/components/ps4/media_player.py @@ -17,7 +17,7 @@ from homeassistant.util.json import load_json, save_json from .const import DOMAIN as PS4_DOMAIN, REGIONS as deprecated_regions - +DEPENDENCIES = ['ps4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/push/camera.py b/homeassistant/components/push/camera.py index 341ee10b0be..c0424f15898 100644 --- a/homeassistant/components/push/camera.py +++ b/homeassistant/components/push/camera.py @@ -17,7 +17,7 @@ from homeassistant.helpers import config_validation as cv from homeassistant.helpers.event import async_track_point_in_utc_time import homeassistant.util.dt as dt_util - +DEPENDENCIES = ['webhook'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/pushbullet/notify.py b/homeassistant/components/pushbullet/notify.py index 4a50435b607..3fc90161ae0 100644 --- a/homeassistant/components/pushbullet/notify.py +++ b/homeassistant/components/pushbullet/notify.py @@ -11,7 +11,7 @@ from homeassistant.components.notify import ( ATTR_DATA, ATTR_TARGET, ATTR_TITLE, ATTR_TITLE_DEFAULT, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['pushbullet.py==0.11.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/pushbullet/sensor.py b/homeassistant/components/pushbullet/sensor.py index efd949ace69..c90f952e7de 100644 --- a/homeassistant/components/pushbullet/sensor.py +++ b/homeassistant/components/pushbullet/sensor.py @@ -8,7 +8,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pushbullet.py==0.11.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/pushetta/notify.py b/homeassistant/components/pushetta/notify.py index e896eba9a5a..028b0cfd492 100644 --- a/homeassistant/components/pushetta/notify.py +++ b/homeassistant/components/pushetta/notify.py @@ -10,7 +10,7 @@ from homeassistant.components.notify import ( ATTR_TITLE, ATTR_TITLE_DEFAULT, PLATFORM_SCHEMA, BaseNotificationService) _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pushetta==1.0.15'] CONF_CHANNEL_NAME = 'channel_name' diff --git a/homeassistant/components/pushover/notify.py b/homeassistant/components/pushover/notify.py index 7b9b46d07bd..39a1ce5d2f7 100644 --- a/homeassistant/components/pushover/notify.py +++ b/homeassistant/components/pushover/notify.py @@ -10,7 +10,7 @@ from homeassistant.components.notify import ( ATTR_DATA, ATTR_TARGET, ATTR_TITLE, ATTR_TITLE_DEFAULT, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['python-pushover==0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/python_script/__init__.py b/homeassistant/components/python_script/__init__.py index 3dd7d0ffa9d..56a82b39120 100644 --- a/homeassistant/components/python_script/__init__.py +++ b/homeassistant/components/python_script/__init__.py @@ -13,7 +13,7 @@ from homeassistant.loader import bind_hass from homeassistant.util import sanitize_filename import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['restrictedpython==4.0b8'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/qbittorrent/sensor.py b/homeassistant/components/qbittorrent/sensor.py index 5dd5ecc8320..7e91c0ab276 100644 --- a/homeassistant/components/qbittorrent/sensor.py +++ b/homeassistant/components/qbittorrent/sensor.py @@ -12,7 +12,7 @@ from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv from homeassistant.exceptions import PlatformNotReady - +REQUIREMENTS = ['python-qbittorrent==0.3.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/qnap/sensor.py b/homeassistant/components/qnap/sensor.py index 7aa067825d0..e12f20c25b1 100644 --- a/homeassistant/components/qnap/sensor.py +++ b/homeassistant/components/qnap/sensor.py @@ -13,7 +13,7 @@ from homeassistant.util import Throttle from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['qnapstats==0.2.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/qrcode/image_processing.py b/homeassistant/components/qrcode/image_processing.py index 0c384030206..46fa78cca7f 100644 --- a/homeassistant/components/qrcode/image_processing.py +++ b/homeassistant/components/qrcode/image_processing.py @@ -3,7 +3,7 @@ from homeassistant.core import split_entity_id from homeassistant.components.image_processing import ( ImageProcessingEntity, CONF_SOURCE, CONF_ENTITY_ID, CONF_NAME) - +REQUIREMENTS = ['pyzbar==0.1.7', 'pillow==5.4.1'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/quantum_gateway/device_tracker.py b/homeassistant/components/quantum_gateway/device_tracker.py index 163203dc01d..3472a4dbb97 100644 --- a/homeassistant/components/quantum_gateway/device_tracker.py +++ b/homeassistant/components/quantum_gateway/device_tracker.py @@ -9,7 +9,7 @@ from homeassistant.components.device_tracker import (DOMAIN, PLATFORM_SCHEMA, from homeassistant.const import (CONF_HOST, CONF_PASSWORD, CONF_SSL) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['quantum-gateway==0.0.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/qwikswitch/__init__.py b/homeassistant/components/qwikswitch/__init__.py index 92f0ca4cc66..a6468595622 100644 --- a/homeassistant/components/qwikswitch/__init__.py +++ b/homeassistant/components/qwikswitch/__init__.py @@ -14,7 +14,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.discovery import load_platform from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pyqwikswitch==0.93'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/qwikswitch/binary_sensor.py b/homeassistant/components/qwikswitch/binary_sensor.py index d22af49ffca..a92c4d0b435 100644 --- a/homeassistant/components/qwikswitch/binary_sensor.py +++ b/homeassistant/components/qwikswitch/binary_sensor.py @@ -6,7 +6,7 @@ from homeassistant.core import callback from . import DOMAIN as QWIKSWITCH, QSEntity - +DEPENDENCIES = [QWIKSWITCH] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/qwikswitch/light.py b/homeassistant/components/qwikswitch/light.py index 007de993a34..cb4df24f978 100644 --- a/homeassistant/components/qwikswitch/light.py +++ b/homeassistant/components/qwikswitch/light.py @@ -3,7 +3,7 @@ from homeassistant.components.light import SUPPORT_BRIGHTNESS, Light from . import DOMAIN as QWIKSWITCH, QSToggleEntity - +DEPENDENCIES = [QWIKSWITCH] async def async_setup_platform(hass, _, add_entities, discovery_info=None): diff --git a/homeassistant/components/qwikswitch/sensor.py b/homeassistant/components/qwikswitch/sensor.py index 37808906295..8befce4f7e2 100644 --- a/homeassistant/components/qwikswitch/sensor.py +++ b/homeassistant/components/qwikswitch/sensor.py @@ -5,7 +5,7 @@ from homeassistant.core import callback from . import DOMAIN as QWIKSWITCH, QSEntity - +DEPENDENCIES = [QWIKSWITCH] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/qwikswitch/switch.py b/homeassistant/components/qwikswitch/switch.py index 78603352817..4ee5396ae0c 100644 --- a/homeassistant/components/qwikswitch/switch.py +++ b/homeassistant/components/qwikswitch/switch.py @@ -3,7 +3,7 @@ from homeassistant.components.switch import SwitchDevice from . import DOMAIN as QWIKSWITCH, QSToggleEntity - +DEPENDENCIES = [QWIKSWITCH] async def async_setup_platform(hass, _, add_entities, discovery_info=None): diff --git a/homeassistant/components/rachio/__init__.py b/homeassistant/components/rachio/__init__.py index 634e27c7d68..64a7a5af4d7 100644 --- a/homeassistant/components/rachio/__init__.py +++ b/homeassistant/components/rachio/__init__.py @@ -11,7 +11,7 @@ from homeassistant.const import CONF_API_KEY, EVENT_HOMEASSISTANT_STOP, URL_API from homeassistant.helpers import discovery, config_validation as cv from homeassistant.helpers.dispatcher import async_dispatcher_send - +REQUIREMENTS = ['rachiopy==0.1.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rachio/binary_sensor.py b/homeassistant/components/rachio/binary_sensor.py index da90e998778..ffcaeccacff 100644 --- a/homeassistant/components/rachio/binary_sensor.py +++ b/homeassistant/components/rachio/binary_sensor.py @@ -10,7 +10,7 @@ from . import ( SIGNAL_RACHIO_CONTROLLER_UPDATE, STATUS_OFFLINE, STATUS_ONLINE, SUBTYPE_OFFLINE, SUBTYPE_ONLINE) - +DEPENDENCIES = ['rachio'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rachio/switch.py b/homeassistant/components/rachio/switch.py index 7222cbc353e..483e07e96f4 100644 --- a/homeassistant/components/rachio/switch.py +++ b/homeassistant/components/rachio/switch.py @@ -13,7 +13,7 @@ from . import ( SIGNAL_RACHIO_ZONE_UPDATE, SUBTYPE_SLEEP_MODE_OFF, SUBTYPE_SLEEP_MODE_ON, SUBTYPE_ZONE_COMPLETED, SUBTYPE_ZONE_STARTED, SUBTYPE_ZONE_STOPPED) - +DEPENDENCIES = ['rachio'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/radiotherm/climate.py b/homeassistant/components/radiotherm/climate.py index c8972457dd6..66dfc4cc385 100644 --- a/homeassistant/components/radiotherm/climate.py +++ b/homeassistant/components/radiotherm/climate.py @@ -14,7 +14,7 @@ from homeassistant.const import ( STATE_OFF) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['radiotherm==2.0.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rainbird/__init__.py b/homeassistant/components/rainbird/__init__.py index 60ed1d08b3c..de0f42fda4a 100644 --- a/homeassistant/components/rainbird/__init__.py +++ b/homeassistant/components/rainbird/__init__.py @@ -6,7 +6,7 @@ import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant.const import (CONF_HOST, CONF_PASSWORD) - +REQUIREMENTS = ['pyrainbird==0.1.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rainbird/sensor.py b/homeassistant/components/rainbird/sensor.py index dc118c99b1b..0cee202ecb2 100644 --- a/homeassistant/components/rainbird/sensor.py +++ b/homeassistant/components/rainbird/sensor.py @@ -10,7 +10,7 @@ from homeassistant.helpers.entity import Entity from . import DATA_RAINBIRD - +DEPENDENCIES = ['rainbird'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rainbird/switch.py b/homeassistant/components/rainbird/switch.py index 31dec0723b0..32c7c49ab99 100644 --- a/homeassistant/components/rainbird/switch.py +++ b/homeassistant/components/rainbird/switch.py @@ -12,7 +12,7 @@ from homeassistant.helpers import config_validation as cv from . import DATA_RAINBIRD - +DEPENDENCIES = ['rainbird'] DOMAIN = 'rainbird' _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/raincloud/__init__.py b/homeassistant/components/raincloud/__init__.py index 4bb63971fe9..c94315f673d 100644 --- a/homeassistant/components/raincloud/__init__.py +++ b/homeassistant/components/raincloud/__init__.py @@ -13,7 +13,7 @@ from homeassistant.helpers.dispatcher import ( from homeassistant.helpers.entity import Entity from homeassistant.helpers.event import track_time_interval - +REQUIREMENTS = ['raincloudy==0.0.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/raincloud/binary_sensor.py b/homeassistant/components/raincloud/binary_sensor.py index 89f4b1007af..6ebad7cc121 100644 --- a/homeassistant/components/raincloud/binary_sensor.py +++ b/homeassistant/components/raincloud/binary_sensor.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv from . import BINARY_SENSORS, DATA_RAINCLOUD, ICON_MAP, RainCloudEntity - +DEPENDENCIES = ['raincloud'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/raincloud/sensor.py b/homeassistant/components/raincloud/sensor.py index 5f441f09979..6774d48ae99 100644 --- a/homeassistant/components/raincloud/sensor.py +++ b/homeassistant/components/raincloud/sensor.py @@ -10,7 +10,7 @@ from homeassistant.helpers.icon import icon_for_battery_level from . import DATA_RAINCLOUD, ICON_MAP, SENSORS, RainCloudEntity - +DEPENDENCIES = ['raincloud'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/raincloud/switch.py b/homeassistant/components/raincloud/switch.py index 8b5ebd1724c..3901e1e0bd8 100644 --- a/homeassistant/components/raincloud/switch.py +++ b/homeassistant/components/raincloud/switch.py @@ -11,7 +11,7 @@ from . import ( ALLOWED_WATERING_TIME, ATTRIBUTION, CONF_WATERING_TIME, DATA_RAINCLOUD, DEFAULT_WATERING_TIME, SWITCHES, RainCloudEntity) - +DEPENDENCIES = ['raincloud'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rainmachine/__init__.py b/homeassistant/components/rainmachine/__init__.py index b1b0f407368..2ff5ddcd4aa 100644 --- a/homeassistant/components/rainmachine/__init__.py +++ b/homeassistant/components/rainmachine/__init__.py @@ -22,7 +22,7 @@ from .config_flow import configured_instances from .const import ( DATA_CLIENT, DEFAULT_PORT, DEFAULT_SCAN_INTERVAL, DEFAULT_SSL, DOMAIN) - +REQUIREMENTS = ['regenmaschine==1.4.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rainmachine/binary_sensor.py b/homeassistant/components/rainmachine/binary_sensor.py index 198adb6b052..4387e6b67be 100644 --- a/homeassistant/components/rainmachine/binary_sensor.py +++ b/homeassistant/components/rainmachine/binary_sensor.py @@ -11,7 +11,7 @@ from . import ( TYPE_HOURLY, TYPE_MONTH, TYPE_RAINDELAY, TYPE_RAINSENSOR, TYPE_WEEKDAY, RainMachineEntity) - +DEPENDENCIES = ['rainmachine'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rainmachine/sensor.py b/homeassistant/components/rainmachine/sensor.py index 86ff7eb7f3d..1d438b8035f 100644 --- a/homeassistant/components/rainmachine/sensor.py +++ b/homeassistant/components/rainmachine/sensor.py @@ -8,7 +8,7 @@ from . import ( DATA_CLIENT, DOMAIN as RAINMACHINE_DOMAIN, SENSOR_UPDATE_TOPIC, SENSORS, RainMachineEntity) - +DEPENDENCIES = ['rainmachine'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rainmachine/switch.py b/homeassistant/components/rainmachine/switch.py index 270637c63a7..adcbe559819 100644 --- a/homeassistant/components/rainmachine/switch.py +++ b/homeassistant/components/rainmachine/switch.py @@ -12,7 +12,7 @@ from . import ( DATA_CLIENT, DOMAIN as RAINMACHINE_DOMAIN, PROGRAM_UPDATE_TOPIC, ZONE_UPDATE_TOPIC, RainMachineEntity) - +DEPENDENCIES = ['rainmachine'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/raspihats/__init__.py b/homeassistant/components/raspihats/__init__.py index 5ace719b83a..622b98223aa 100644 --- a/homeassistant/components/raspihats/__init__.py +++ b/homeassistant/components/raspihats/__init__.py @@ -6,7 +6,7 @@ import time from homeassistant.const import ( EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP) - +REQUIREMENTS = ['raspihats==2.2.3', 'smbus-cffi==0.5.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/raspihats/binary_sensor.py b/homeassistant/components/raspihats/binary_sensor.py index d619521cf2a..29fa474f781 100644 --- a/homeassistant/components/raspihats/binary_sensor.py +++ b/homeassistant/components/raspihats/binary_sensor.py @@ -15,7 +15,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['raspihats'] DEFAULT_INVERT_LOGIC = False DEFAULT_DEVICE_CLASS = None diff --git a/homeassistant/components/raspihats/switch.py b/homeassistant/components/raspihats/switch.py index 2e9512c5947..93538682ad8 100644 --- a/homeassistant/components/raspihats/switch.py +++ b/homeassistant/components/raspihats/switch.py @@ -14,7 +14,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['raspihats'] _CHANNELS_SCHEMA = vol.Schema([{ vol.Required(CONF_INDEX): cv.positive_int, diff --git a/homeassistant/components/raspyrfm/switch.py b/homeassistant/components/raspyrfm/switch.py index 864c6c27428..a141721f3e5 100644 --- a/homeassistant/components/raspyrfm/switch.py +++ b/homeassistant/components/raspyrfm/switch.py @@ -9,7 +9,7 @@ from homeassistant.const import ( DEVICE_DEFAULT_NAME) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['raspyrfm-client==1.2.8'] _LOGGER = logging.getLogger(__name__) CONF_GATEWAY_MANUFACTURER = 'gateway_manufacturer' diff --git a/homeassistant/components/recollect_waste/sensor.py b/homeassistant/components/recollect_waste/sensor.py index 07874ab2990..1e3803ab866 100644 --- a/homeassistant/components/recollect_waste/sensor.py +++ b/homeassistant/components/recollect_waste/sensor.py @@ -8,7 +8,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import (CONF_NAME) from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['recollect-waste==1.0.1'] _LOGGER = logging.getLogger(__name__) ATTR_PICKUP_TYPES = 'pickup_types' diff --git a/homeassistant/components/recorder/__init__.py b/homeassistant/components/recorder/__init__.py index 5b6ad17ce8e..0df1fa42ad4 100644 --- a/homeassistant/components/recorder/__init__.py +++ b/homeassistant/components/recorder/__init__.py @@ -25,7 +25,7 @@ from . import migration, purge from .const import DATA_INSTANCE from .util import session_scope - +REQUIREMENTS = ['sqlalchemy==1.3.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/recswitch/switch.py b/homeassistant/components/recswitch/switch.py index 5fdb72606ef..ed2da8022f8 100644 --- a/homeassistant/components/recswitch/switch.py +++ b/homeassistant/components/recswitch/switch.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pyrecswitch==1.0.2'] DEFAULT_NAME = 'RecSwitch {0}' diff --git a/homeassistant/components/reddit/sensor.py b/homeassistant/components/reddit/sensor.py index 92e4e299d1b..3ba43196551 100644 --- a/homeassistant/components/reddit/sensor.py +++ b/homeassistant/components/reddit/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import (CONF_USERNAME, CONF_PASSWORD, CONF_MAXIMUM) import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['praw==6.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rejseplanen/sensor.py b/homeassistant/components/rejseplanen/sensor.py index e342c624bd8..7a8cddb6179 100755 --- a/homeassistant/components/rejseplanen/sensor.py +++ b/homeassistant/components/rejseplanen/sensor.py @@ -19,7 +19,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import CONF_NAME, ATTR_ATTRIBUTION from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['rjpl==0.3.5'] _LOGGER = logging.getLogger(__name__) ATTR_STOP_ID = 'Stop ID' diff --git a/homeassistant/components/remember_the_milk/__init__.py b/homeassistant/components/remember_the_milk/__init__.py index d85518cfb37..82619e35a0e 100644 --- a/homeassistant/components/remember_the_milk/__init__.py +++ b/homeassistant/components/remember_the_milk/__init__.py @@ -13,7 +13,7 @@ from homeassistant.helpers.entity_component import EntityComponent # httplib2 is a transitive dependency from RtmAPI. If this dependency is not # set explicitly, the library does not work. - +REQUIREMENTS = ['RtmAPI==0.7.0', 'httplib2==0.10.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/remote/__init__.py b/homeassistant/components/remote/__init__.py index 6ef417c1e41..de79adc9f0e 100644 --- a/homeassistant/components/remote/__init__.py +++ b/homeassistant/components/remote/__init__.py @@ -26,7 +26,7 @@ ATTR_DELAY_SECS = 'delay_secs' ATTR_HOLD_SECS = 'hold_secs' DOMAIN = 'remote' - +DEPENDENCIES = ['group'] SCAN_INTERVAL = timedelta(seconds=30) ENTITY_ID_ALL_REMOTES = group.ENTITY_ID_FORMAT.format('all_remotes') diff --git a/homeassistant/components/rflink/__init__.py b/homeassistant/components/rflink/__init__.py index 71af79bb95f..98e80580fea 100644 --- a/homeassistant/components/rflink/__init__.py +++ b/homeassistant/components/rflink/__init__.py @@ -18,7 +18,7 @@ from homeassistant.helpers.dispatcher import ( async_dispatcher_send, async_dispatcher_connect) from homeassistant.helpers.restore_state import RestoreEntity - +REQUIREMENTS = ['rflink==0.0.37'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rflink/binary_sensor.py b/homeassistant/components/rflink/binary_sensor.py index 5a25cebdbd9..4e487eb6e81 100644 --- a/homeassistant/components/rflink/binary_sensor.py +++ b/homeassistant/components/rflink/binary_sensor.py @@ -14,7 +14,7 @@ from . import CONF_ALIASES, CONF_DEVICES, RflinkDevice CONF_OFF_DELAY = 'off_delay' DEFAULT_FORCE_UPDATE = False - +DEPENDENCIES = ['rflink'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rflink/cover.py b/homeassistant/components/rflink/cover.py index 821bd920b4e..409d27862f9 100644 --- a/homeassistant/components/rflink/cover.py +++ b/homeassistant/components/rflink/cover.py @@ -13,7 +13,7 @@ from . import ( CONF_GROUP, CONF_GROUP_ALIASES, CONF_NOGROUP_ALIASES, CONF_SIGNAL_REPETITIONS, DEVICE_DEFAULTS_SCHEMA, RflinkCommand) - +DEPENDENCIES = ['rflink'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rflink/light.py b/homeassistant/components/rflink/light.py index 434fc6a05e3..112ed4b4f51 100644 --- a/homeassistant/components/rflink/light.py +++ b/homeassistant/components/rflink/light.py @@ -15,7 +15,7 @@ from . import ( CONF_SIGNAL_REPETITIONS, DATA_DEVICE_REGISTER, DEVICE_DEFAULTS_SCHEMA, EVENT_KEY_COMMAND, EVENT_KEY_ID, SwitchableRflinkDevice, remove_deprecated) - +DEPENDENCIES = ['rflink'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rflink/sensor.py b/homeassistant/components/rflink/sensor.py index d11bf3415f5..c7498ece241 100644 --- a/homeassistant/components/rflink/sensor.py +++ b/homeassistant/components/rflink/sensor.py @@ -15,7 +15,7 @@ from . import ( EVENT_KEY_UNIT, SIGNAL_AVAILABILITY, SIGNAL_HANDLE_EVENT, TMP_ENTITY, RflinkDevice, remove_deprecated) - +DEPENDENCIES = ['rflink'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rflink/switch.py b/homeassistant/components/rflink/switch.py index 4a367f35a16..d5889c797f0 100644 --- a/homeassistant/components/rflink/switch.py +++ b/homeassistant/components/rflink/switch.py @@ -13,7 +13,7 @@ from . import ( CONF_NOGROUP_ALIASES, CONF_NOGROUP_ALIASSES, CONF_SIGNAL_REPETITIONS, DEVICE_DEFAULTS_SCHEMA, SwitchableRflinkDevice, remove_deprecated) - +DEPENDENCIES = ['rflink'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rfxtrx/__init__.py b/homeassistant/components/rfxtrx/__init__.py index 527f96156dd..411f0538bde 100644 --- a/homeassistant/components/rfxtrx/__init__.py +++ b/homeassistant/components/rfxtrx/__init__.py @@ -12,7 +12,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import slugify - +REQUIREMENTS = ['pyRFXtrx==0.23'] DOMAIN = 'rfxtrx' diff --git a/homeassistant/components/rfxtrx/binary_sensor.py b/homeassistant/components/rfxtrx/binary_sensor.py index f010ce0b0af..d548897fb80 100644 --- a/homeassistant/components/rfxtrx/binary_sensor.py +++ b/homeassistant/components/rfxtrx/binary_sensor.py @@ -17,7 +17,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['rfxtrx'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Optional(CONF_DEVICES, default={}): { diff --git a/homeassistant/components/rfxtrx/cover.py b/homeassistant/components/rfxtrx/cover.py index f49516a0745..7ac0e2aa43f 100644 --- a/homeassistant/components/rfxtrx/cover.py +++ b/homeassistant/components/rfxtrx/cover.py @@ -10,7 +10,7 @@ from . import ( CONF_AUTOMATIC_ADD, CONF_DEVICES, CONF_FIRE_EVENT, CONF_SIGNAL_REPETITIONS, DEFAULT_SIGNAL_REPETITIONS) - +DEPENDENCIES = ['rfxtrx'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Optional(CONF_DEVICES, default={}): { diff --git a/homeassistant/components/rfxtrx/light.py b/homeassistant/components/rfxtrx/light.py index 7c9ff6e972d..3320a67214e 100644 --- a/homeassistant/components/rfxtrx/light.py +++ b/homeassistant/components/rfxtrx/light.py @@ -13,7 +13,7 @@ from . import ( CONF_AUTOMATIC_ADD, CONF_DEVICES, CONF_FIRE_EVENT, CONF_SIGNAL_REPETITIONS, DEFAULT_SIGNAL_REPETITIONS) - +DEPENDENCIES = ['rfxtrx'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rfxtrx/sensor.py b/homeassistant/components/rfxtrx/sensor.py index 30de3513360..cc54320cb67 100644 --- a/homeassistant/components/rfxtrx/sensor.py +++ b/homeassistant/components/rfxtrx/sensor.py @@ -14,7 +14,7 @@ from . import ( ATTR_DATA_TYPE, ATTR_FIRE_EVENT, CONF_AUTOMATIC_ADD, CONF_DATA_TYPE, CONF_DEVICES, CONF_FIRE_EVENT, DATA_TYPES) - +DEPENDENCIES = ['rfxtrx'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rfxtrx/switch.py b/homeassistant/components/rfxtrx/switch.py index 26756140235..908c07ea745 100644 --- a/homeassistant/components/rfxtrx/switch.py +++ b/homeassistant/components/rfxtrx/switch.py @@ -12,7 +12,7 @@ from . import ( CONF_AUTOMATIC_ADD, CONF_DEVICES, CONF_FIRE_EVENT, CONF_SIGNAL_REPETITIONS, DEFAULT_SIGNAL_REPETITIONS) - +DEPENDENCIES = ['rfxtrx'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ring/__init__.py b/homeassistant/components/ring/__init__.py index 50437a59fc4..74da7a9d542 100644 --- a/homeassistant/components/ring/__init__.py +++ b/homeassistant/components/ring/__init__.py @@ -7,7 +7,7 @@ import voluptuous as vol from homeassistant.const import CONF_PASSWORD, CONF_USERNAME import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['ring_doorbell==0.2.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ring/binary_sensor.py b/homeassistant/components/ring/binary_sensor.py index 26d3c838f96..79de0424d85 100644 --- a/homeassistant/components/ring/binary_sensor.py +++ b/homeassistant/components/ring/binary_sensor.py @@ -12,7 +12,7 @@ import homeassistant.helpers.config_validation as cv from . import ATTRIBUTION, DATA_RING, DEFAULT_ENTITY_NAMESPACE - +DEPENDENCIES = ['ring'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ring/camera.py b/homeassistant/components/ring/camera.py index 9c96717f1c7..18427b9b6f9 100644 --- a/homeassistant/components/ring/camera.py +++ b/homeassistant/components/ring/camera.py @@ -16,7 +16,7 @@ from . import ATTRIBUTION, DATA_RING, NOTIFICATION_ID CONF_FFMPEG_ARGUMENTS = 'ffmpeg_arguments' - +DEPENDENCIES = ['ring', 'ffmpeg'] FORCE_REFRESH_INTERVAL = timedelta(minutes=45) diff --git a/homeassistant/components/ring/sensor.py b/homeassistant/components/ring/sensor.py index 697338862a7..c9cb2f1159a 100644 --- a/homeassistant/components/ring/sensor.py +++ b/homeassistant/components/ring/sensor.py @@ -13,7 +13,7 @@ from homeassistant.helpers.icon import icon_for_battery_level from . import ATTRIBUTION, DATA_RING, DEFAULT_ENTITY_NAMESPACE - +DEPENDENCIES = ['ring'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ripple/sensor.py b/homeassistant/components/ripple/sensor.py index 6e1937a0e98..54530571c3e 100644 --- a/homeassistant/components/ripple/sensor.py +++ b/homeassistant/components/ripple/sensor.py @@ -8,7 +8,7 @@ from homeassistant.const import ATTR_ATTRIBUTION, CONF_ADDRESS, CONF_NAME import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['python-ripple-api==0.0.3'] ATTRIBUTION = "Data provided by ripple.com" diff --git a/homeassistant/components/ritassist/device_tracker.py b/homeassistant/components/ritassist/device_tracker.py index 887c4244e81..74bec1b8711 100644 --- a/homeassistant/components/ritassist/device_tracker.py +++ b/homeassistant/components/ritassist/device_tracker.py @@ -9,7 +9,7 @@ from homeassistant.components.device_tracker import PLATFORM_SCHEMA from homeassistant.const import CONF_USERNAME, CONF_PASSWORD from homeassistant.helpers.event import track_utc_time_change - +REQUIREMENTS = ['ritassist==0.9.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rmvtransport/sensor.py b/homeassistant/components/rmvtransport/sensor.py index e53b92c4108..7a3afb3f324 100644 --- a/homeassistant/components/rmvtransport/sensor.py +++ b/homeassistant/components/rmvtransport/sensor.py @@ -13,7 +13,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['PyRMVtransport==0.1.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rocketchat/notify.py b/homeassistant/components/rocketchat/notify.py index e00e725321b..e404114736a 100644 --- a/homeassistant/components/rocketchat/notify.py +++ b/homeassistant/components/rocketchat/notify.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.components.notify import (ATTR_DATA, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['rocketchat-API==0.6.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/roku/__init__.py b/homeassistant/components/roku/__init__.py index 168dd01354c..89bb1a9acb8 100644 --- a/homeassistant/components/roku/__init__.py +++ b/homeassistant/components/roku/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import CONF_HOST from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['python-roku==3.1.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/roku/media_player.py b/homeassistant/components/roku/media_player.py index d88d60b69a2..3cf27af0674 100644 --- a/homeassistant/components/roku/media_player.py +++ b/homeassistant/components/roku/media_player.py @@ -10,7 +10,7 @@ from homeassistant.components.media_player.const import ( from homeassistant.const import (CONF_HOST, STATE_HOME, STATE_IDLE, STATE_PLAYING) - +DEPENDENCIES = ['roku'] DEFAULT_PORT = 8060 diff --git a/homeassistant/components/roku/remote.py b/homeassistant/components/roku/remote.py index 5cc1e4de0c6..5529918010c 100644 --- a/homeassistant/components/roku/remote.py +++ b/homeassistant/components/roku/remote.py @@ -4,7 +4,7 @@ import requests.exceptions from homeassistant.components import remote from homeassistant.const import (CONF_HOST) - +DEPENDENCIES = ['roku'] async def async_setup_platform( diff --git a/homeassistant/components/roomba/vacuum.py b/homeassistant/components/roomba/vacuum.py index a345a007489..fadbe2a82d5 100644 --- a/homeassistant/components/roomba/vacuum.py +++ b/homeassistant/components/roomba/vacuum.py @@ -14,7 +14,7 @@ from homeassistant.const import ( from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['roombapy==1.3.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/route53/__init__.py b/homeassistant/components/route53/__init__.py index c94dd727765..725dec8b8e5 100644 --- a/homeassistant/components/route53/__init__.py +++ b/homeassistant/components/route53/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import CONF_DOMAIN, CONF_TTL, CONF_ZONE import homeassistant.helpers.config_validation as cv from homeassistant.helpers.event import track_time_interval - +REQUIREMENTS = ['boto3==1.9.16', 'ipify==1.0.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rova/sensor.py b/homeassistant/components/rova/sensor.py index 28fc55ebcd7..2c2c36b1245 100644 --- a/homeassistant/components/rova/sensor.py +++ b/homeassistant/components/rova/sensor.py @@ -12,7 +12,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['rova==0.1.0'] # Config for rova requests. CONF_ZIP_CODE = 'zip_code' diff --git a/homeassistant/components/rpi_gpio/__init__.py b/homeassistant/components/rpi_gpio/__init__.py index 2d79b114683..b5bd0796f16 100644 --- a/homeassistant/components/rpi_gpio/__init__.py +++ b/homeassistant/components/rpi_gpio/__init__.py @@ -4,7 +4,7 @@ import logging from homeassistant.const import ( EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP) - +REQUIREMENTS = ['RPi.GPIO==0.6.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rpi_gpio/binary_sensor.py b/homeassistant/components/rpi_gpio/binary_sensor.py index 26e5e603eb4..559ae958404 100644 --- a/homeassistant/components/rpi_gpio/binary_sensor.py +++ b/homeassistant/components/rpi_gpio/binary_sensor.py @@ -20,7 +20,7 @@ DEFAULT_BOUNCETIME = 50 DEFAULT_INVERT_LOGIC = False DEFAULT_PULL_MODE = 'UP' - +DEPENDENCIES = ['rpi_gpio'] _SENSORS_SCHEMA = vol.Schema({ cv.positive_int: cv.string, diff --git a/homeassistant/components/rpi_gpio/cover.py b/homeassistant/components/rpi_gpio/cover.py index a577c982287..403f7ec6867 100644 --- a/homeassistant/components/rpi_gpio/cover.py +++ b/homeassistant/components/rpi_gpio/cover.py @@ -23,7 +23,7 @@ DEFAULT_RELAY_TIME = .2 DEFAULT_STATE_PULL_MODE = 'UP' DEFAULT_INVERT_STATE = False DEFAULT_INVERT_RELAY = False - +DEPENDENCIES = ['rpi_gpio'] _COVERS_SCHEMA = vol.All( cv.ensure_list, diff --git a/homeassistant/components/rpi_gpio/switch.py b/homeassistant/components/rpi_gpio/switch.py index 21b717f4243..bdb79d03eec 100644 --- a/homeassistant/components/rpi_gpio/switch.py +++ b/homeassistant/components/rpi_gpio/switch.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['rpi_gpio'] CONF_PULL_MODE = 'pull_mode' CONF_PORTS = 'ports' diff --git a/homeassistant/components/rpi_gpio_pwm/light.py b/homeassistant/components/rpi_gpio_pwm/light.py index 06fac61401f..b0b9ef1b763 100644 --- a/homeassistant/components/rpi_gpio_pwm/light.py +++ b/homeassistant/components/rpi_gpio_pwm/light.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv import homeassistant.util.color as color_util from homeassistant.helpers.restore_state import RestoreEntity - +REQUIREMENTS = ['pwmled==1.4.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rpi_pfio/__init__.py b/homeassistant/components/rpi_pfio/__init__.py index 10d36372c09..b096d9fe98a 100644 --- a/homeassistant/components/rpi_pfio/__init__.py +++ b/homeassistant/components/rpi_pfio/__init__.py @@ -4,7 +4,7 @@ import logging from homeassistant.const import ( EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP) - +REQUIREMENTS = ['pifacecommon==4.2.2', 'pifacedigitalio==3.0.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rpi_pfio/binary_sensor.py b/homeassistant/components/rpi_pfio/binary_sensor.py index 5375e1d4f37..677ec3bb16f 100644 --- a/homeassistant/components/rpi_pfio/binary_sensor.py +++ b/homeassistant/components/rpi_pfio/binary_sensor.py @@ -18,7 +18,7 @@ CONF_SETTLE_TIME = 'settle_time' DEFAULT_INVERT_LOGIC = False DEFAULT_SETTLE_TIME = 20 - +DEPENDENCIES = ['rpi_pfio'] PORT_SCHEMA = vol.Schema({ vol.Optional(CONF_NAME): cv.string, diff --git a/homeassistant/components/rpi_pfio/switch.py b/homeassistant/components/rpi_pfio/switch.py index 90ef5cad7e7..fc158bd666f 100644 --- a/homeassistant/components/rpi_pfio/switch.py +++ b/homeassistant/components/rpi_pfio/switch.py @@ -11,7 +11,7 @@ from homeassistant.helpers.entity import ToggleEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['rpi_pfio'] ATTR_INVERT_LOGIC = 'invert_logic' diff --git a/homeassistant/components/rpi_rf/switch.py b/homeassistant/components/rpi_rf/switch.py index d228c6c93bf..d0a23372802 100644 --- a/homeassistant/components/rpi_rf/switch.py +++ b/homeassistant/components/rpi_rf/switch.py @@ -9,7 +9,7 @@ from homeassistant.const import ( CONF_NAME, CONF_SWITCHES, EVENT_HOMEASSISTANT_STOP) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['rpi-rf==0.9.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/rss_feed_template/__init__.py b/homeassistant/components/rss_feed_template/__init__.py index d51a87f6ba5..3c93fe2ac83 100644 --- a/homeassistant/components/rss_feed_template/__init__.py +++ b/homeassistant/components/rss_feed_template/__init__.py @@ -8,7 +8,7 @@ from homeassistant.components.http import HomeAssistantView import homeassistant.helpers.config_validation as cv CONTENT_TYPE_XML = 'text/xml' - +DEPENDENCIES = ['http'] DOMAIN = 'rss_feed_template' diff --git a/homeassistant/components/russound_rio/media_player.py b/homeassistant/components/russound_rio/media_player.py index dba86dfa4af..b8f9d29f5ca 100644 --- a/homeassistant/components/russound_rio/media_player.py +++ b/homeassistant/components/russound_rio/media_player.py @@ -14,7 +14,7 @@ from homeassistant.const import ( from homeassistant.core import callback import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['russound_rio==0.1.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/russound_rnet/media_player.py b/homeassistant/components/russound_rnet/media_player.py index 1c6e5d33247..f489d48a9d5 100644 --- a/homeassistant/components/russound_rnet/media_player.py +++ b/homeassistant/components/russound_rnet/media_player.py @@ -12,7 +12,7 @@ from homeassistant.const import ( CONF_HOST, CONF_NAME, CONF_PORT, STATE_OFF, STATE_ON) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['russound==0.1.9'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ruter/sensor.py b/homeassistant/components/ruter/sensor.py index cc2b024dd70..f6fefc96198 100644 --- a/homeassistant/components/ruter/sensor.py +++ b/homeassistant/components/ruter/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import CONF_NAME from homeassistant.helpers.entity import Entity from homeassistant.helpers.aiohttp_client import async_get_clientsession - +REQUIREMENTS = ['pyruter==1.1.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sabnzbd/__init__.py b/homeassistant/components/sabnzbd/__init__.py index 003d12b5c15..d070872f85c 100644 --- a/homeassistant/components/sabnzbd/__init__.py +++ b/homeassistant/components/sabnzbd/__init__.py @@ -15,7 +15,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_send from homeassistant.helpers.event import async_track_time_interval from homeassistant.util.json import load_json, save_json - +REQUIREMENTS = ['pysabnzbd==1.1.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sabnzbd/sensor.py b/homeassistant/components/sabnzbd/sensor.py index a0ba5fd4373..4968725a4be 100644 --- a/homeassistant/components/sabnzbd/sensor.py +++ b/homeassistant/components/sabnzbd/sensor.py @@ -6,7 +6,7 @@ from homeassistant.helpers.entity import Entity from . import DATA_SABNZBD, SENSOR_TYPES, SIGNAL_SABNZBD_UPDATED - +DEPENDENCIES = ['sabnzbd'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/samsungtv/media_player.py b/homeassistant/components/samsungtv/media_player.py index eb6978495e9..1a2a24c3621 100644 --- a/homeassistant/components/samsungtv/media_player.py +++ b/homeassistant/components/samsungtv/media_player.py @@ -18,7 +18,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.util import dt as dt_util - +REQUIREMENTS = ['samsungctl[websocket]==0.7.1', 'wakeonlan==1.1.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/satel_integra/__init__.py b/homeassistant/components/satel_integra/__init__.py index b3a0bbda90b..5f5c43d961f 100644 --- a/homeassistant/components/satel_integra/__init__.py +++ b/homeassistant/components/satel_integra/__init__.py @@ -9,7 +9,7 @@ from homeassistant.helpers import config_validation as cv from homeassistant.helpers.discovery import async_load_platform from homeassistant.helpers.dispatcher import async_dispatcher_send - +REQUIREMENTS = ['satel_integra==0.3.2'] DEFAULT_ALARM_NAME = 'satel_integra' DEFAULT_PORT = 7094 diff --git a/homeassistant/components/satel_integra/alarm_control_panel.py b/homeassistant/components/satel_integra/alarm_control_panel.py index f2733a613f4..d2d9f473051 100644 --- a/homeassistant/components/satel_integra/alarm_control_panel.py +++ b/homeassistant/components/satel_integra/alarm_control_panel.py @@ -16,7 +16,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['satel_integra'] async def async_setup_platform( diff --git a/homeassistant/components/satel_integra/binary_sensor.py b/homeassistant/components/satel_integra/binary_sensor.py index 97b0b339b87..0384ff37f14 100644 --- a/homeassistant/components/satel_integra/binary_sensor.py +++ b/homeassistant/components/satel_integra/binary_sensor.py @@ -9,7 +9,7 @@ from . import ( CONF_OUTPUTS, CONF_ZONE_NAME, CONF_ZONE_TYPE, CONF_ZONES, DATA_SATEL, SIGNAL_OUTPUTS_UPDATED, SIGNAL_ZONES_UPDATED) - +DEPENDENCIES = ['satel_integra'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/scrape/sensor.py b/homeassistant/components/scrape/sensor.py index 002188f0bcf..e576eca78e8 100644 --- a/homeassistant/components/scrape/sensor.py +++ b/homeassistant/components/scrape/sensor.py @@ -15,7 +15,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['beautifulsoup4==4.7.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/script/__init__.py b/homeassistant/components/script/__init__.py index 90e8353c858..873a18120ac 100644 --- a/homeassistant/components/script/__init__.py +++ b/homeassistant/components/script/__init__.py @@ -18,7 +18,7 @@ from homeassistant.helpers.script import Script _LOGGER = logging.getLogger(__name__) DOMAIN = 'script' - +DEPENDENCIES = ['group'] ATTR_CAN_CANCEL = 'can_cancel' ATTR_LAST_ACTION = 'last_action' diff --git a/homeassistant/components/scsgate/__init__.py b/homeassistant/components/scsgate/__init__.py index 52d99fd43f9..67421e9a46a 100644 --- a/homeassistant/components/scsgate/__init__.py +++ b/homeassistant/components/scsgate/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import (CONF_DEVICE, CONF_NAME) from homeassistant.core import EVENT_HOMEASSISTANT_STOP import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['scsgate==0.1.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/scsgate/cover.py b/homeassistant/components/scsgate/cover.py index 906d4cffc5a..fc1c16e1ff3 100644 --- a/homeassistant/components/scsgate/cover.py +++ b/homeassistant/components/scsgate/cover.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['scsgate'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_DEVICES): diff --git a/homeassistant/components/scsgate/light.py b/homeassistant/components/scsgate/light.py index 5608be96fee..87d7e02b383 100644 --- a/homeassistant/components/scsgate/light.py +++ b/homeassistant/components/scsgate/light.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['scsgate'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_DEVICES): diff --git a/homeassistant/components/scsgate/switch.py b/homeassistant/components/scsgate/switch.py index 6a9d6fa623a..2b2bf2de94f 100644 --- a/homeassistant/components/scsgate/switch.py +++ b/homeassistant/components/scsgate/switch.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv ATTR_SCENARIO_ID = 'scenario_id' - +DEPENDENCIES = ['scsgate'] CONF_TRADITIONAL = 'traditional' CONF_SCENARIO = 'scenario' diff --git a/homeassistant/components/season/sensor.py b/homeassistant/components/season/sensor.py index 7d6685453cd..7c7b1054961 100644 --- a/homeassistant/components/season/sensor.py +++ b/homeassistant/components/season/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import CONF_TYPE from homeassistant.helpers.entity import Entity from homeassistant import util - +REQUIREMENTS = ['ephem==3.7.6.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sendgrid/notify.py b/homeassistant/components/sendgrid/notify.py index b56e2159d3a..a717c7f24ed 100644 --- a/homeassistant/components/sendgrid/notify.py +++ b/homeassistant/components/sendgrid/notify.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.components.notify import ( ATTR_TITLE, ATTR_TITLE_DEFAULT, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['sendgrid==5.6.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sense/__init__.py b/homeassistant/components/sense/__init__.py index 762c7ad672d..be3ab75b555 100644 --- a/homeassistant/components/sense/__init__.py +++ b/homeassistant/components/sense/__init__.py @@ -7,7 +7,7 @@ from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, CONF_TIMEOUT import homeassistant.helpers.config_validation as cv from homeassistant.helpers.discovery import async_load_platform - +REQUIREMENTS = ['sense_energy==0.7.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sense/binary_sensor.py b/homeassistant/components/sense/binary_sensor.py index ce961aa4dac..da9bae3cc84 100644 --- a/homeassistant/components/sense/binary_sensor.py +++ b/homeassistant/components/sense/binary_sensor.py @@ -5,7 +5,7 @@ from homeassistant.components.binary_sensor import BinarySensorDevice from . import SENSE_DATA - +DEPENDENCIES = ['sense'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sense/sensor.py b/homeassistant/components/sense/sensor.py index 4f4fe500960..0224884e18a 100644 --- a/homeassistant/components/sense/sensor.py +++ b/homeassistant/components/sense/sensor.py @@ -15,7 +15,7 @@ ACTIVE_TYPE = 'active' CONSUMPTION_NAME = 'Usage' - +DEPENDENCIES = ['sense'] ICON = 'mdi:flash' diff --git a/homeassistant/components/sensehat/light.py b/homeassistant/components/sensehat/light.py index 7a25c66e282..c68e77b40a4 100644 --- a/homeassistant/components/sensehat/light.py +++ b/homeassistant/components/sensehat/light.py @@ -10,7 +10,7 @@ from homeassistant.components.light import ( from homeassistant.const import CONF_NAME import homeassistant.util.color as color_util - +REQUIREMENTS = ['sense-hat==2.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sensehat/sensor.py b/homeassistant/components/sensehat/sensor.py index 82cd0c9bae1..870150c1a98 100644 --- a/homeassistant/components/sensehat/sensor.py +++ b/homeassistant/components/sensehat/sensor.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['sense-hat==2.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sensibo/climate.py b/homeassistant/components/sensibo/climate.py index 9cf13c2fe7e..bf06f232427 100644 --- a/homeassistant/components/sensibo/climate.py +++ b/homeassistant/components/sensibo/climate.py @@ -21,7 +21,7 @@ from homeassistant.helpers import config_validation as cv from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.util.temperature import convert as convert_temperature - +REQUIREMENTS = ['pysensibo==1.0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/serial/sensor.py b/homeassistant/components/serial/sensor.py index b2af5505601..c01981f9021 100644 --- a/homeassistant/components/serial/sensor.py +++ b/homeassistant/components/serial/sensor.py @@ -10,7 +10,7 @@ from homeassistant.const import ( CONF_NAME, CONF_VALUE_TEMPLATE, EVENT_HOMEASSISTANT_STOP) from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pyserial-asyncio==0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/serial_pm/sensor.py b/homeassistant/components/serial_pm/sensor.py index 1922dfff73a..9ad65f7256f 100644 --- a/homeassistant/components/serial_pm/sensor.py +++ b/homeassistant/components/serial_pm/sensor.py @@ -8,7 +8,7 @@ from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv from homeassistant.components.sensor import PLATFORM_SCHEMA - +REQUIREMENTS = ['pmsensor==0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sesame/lock.py b/homeassistant/components/sesame/lock.py index 385bdd1eeef..263914f389c 100644 --- a/homeassistant/components/sesame/lock.py +++ b/homeassistant/components/sesame/lock.py @@ -9,7 +9,7 @@ from homeassistant.const import ( STATE_LOCKED, STATE_UNLOCKED) from homeassistant.helpers.typing import ConfigType - +REQUIREMENTS = ['pysesame==0.1.0'] ATTR_DEVICE_ID = 'device_id' diff --git a/homeassistant/components/seventeentrack/sensor.py b/homeassistant/components/seventeentrack/sensor.py index 3d7c8a94b41..ff17d1a4c54 100644 --- a/homeassistant/components/seventeentrack/sensor.py +++ b/homeassistant/components/seventeentrack/sensor.py @@ -12,7 +12,7 @@ from homeassistant.helpers import aiohttp_client, config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle, slugify - +REQUIREMENTS = ['py17track==2.2.2'] _LOGGER = logging.getLogger(__name__) ATTR_DESTINATION_COUNTRY = 'destination_country' diff --git a/homeassistant/components/shiftr/__init__.py b/homeassistant/components/shiftr/__init__.py index 075aa602e8d..438bc36b1bf 100644 --- a/homeassistant/components/shiftr/__init__.py +++ b/homeassistant/components/shiftr/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import ( EVENT_HOMEASSISTANT_STOP) from homeassistant.helpers import state as state_helper - +REQUIREMENTS = ['paho-mqtt==1.4.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/shodan/sensor.py b/homeassistant/components/shodan/sensor.py index 6bce0d25261..ee64eecf3fe 100644 --- a/homeassistant/components/shodan/sensor.py +++ b/homeassistant/components/shodan/sensor.py @@ -9,7 +9,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ATTR_ATTRIBUTION, CONF_API_KEY, CONF_NAME from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['shodan==1.11.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/shopping_list/__init__.py b/homeassistant/components/shopping_list/__init__.py index 7f24bba6db7..1a036f3661a 100644 --- a/homeassistant/components/shopping_list/__init__.py +++ b/homeassistant/components/shopping_list/__init__.py @@ -18,7 +18,7 @@ from homeassistant.components import websocket_api ATTR_NAME = 'name' DOMAIN = 'shopping_list' - +DEPENDENCIES = ['http'] _LOGGER = logging.getLogger(__name__) CONFIG_SCHEMA = vol.Schema({DOMAIN: {}}, extra=vol.ALLOW_EXTRA) EVENT = 'shopping_list_updated' diff --git a/homeassistant/components/simplepush/notify.py b/homeassistant/components/simplepush/notify.py index 52e9d207f98..081351238d9 100644 --- a/homeassistant/components/simplepush/notify.py +++ b/homeassistant/components/simplepush/notify.py @@ -9,7 +9,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.components.notify import ( ATTR_TITLE, ATTR_TITLE_DEFAULT, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['simplepush==1.1.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/simplisafe/__init__.py b/homeassistant/components/simplisafe/__init__.py index fbdada4e1bf..359591856a7 100644 --- a/homeassistant/components/simplisafe/__init__.py +++ b/homeassistant/components/simplisafe/__init__.py @@ -19,7 +19,7 @@ from homeassistant.helpers import config_validation as cv from .config_flow import configured_instances from .const import DATA_CLIENT, DEFAULT_SCAN_INTERVAL, DOMAIN, TOPIC_UPDATE - +REQUIREMENTS = ['simplisafe-python==3.4.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sisyphus/__init__.py b/homeassistant/components/sisyphus/__init__.py index 20523296ec3..b1bec15d40e 100644 --- a/homeassistant/components/sisyphus/__init__.py +++ b/homeassistant/components/sisyphus/__init__.py @@ -13,7 +13,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession import homeassistant.helpers.config_validation as cv from homeassistant.helpers.discovery import async_load_platform - +REQUIREMENTS = ['sisyphus-control==2.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sisyphus/light.py b/homeassistant/components/sisyphus/light.py index b285824d7ce..182e5e78198 100644 --- a/homeassistant/components/sisyphus/light.py +++ b/homeassistant/components/sisyphus/light.py @@ -8,7 +8,7 @@ from . import DATA_SISYPHUS _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['sisyphus'] SUPPORTED_FEATURES = SUPPORT_BRIGHTNESS diff --git a/homeassistant/components/sisyphus/media_player.py b/homeassistant/components/sisyphus/media_player.py index 29a0f47784e..11546c3fd43 100644 --- a/homeassistant/components/sisyphus/media_player.py +++ b/homeassistant/components/sisyphus/media_player.py @@ -13,7 +13,7 @@ from . import DATA_SISYPHUS _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['sisyphus'] MEDIA_TYPE_TRACK = 'sisyphus_track' diff --git a/homeassistant/components/skybeacon/sensor.py b/homeassistant/components/skybeacon/sensor.py index 9e6f0a91472..9b8b4872cdc 100644 --- a/homeassistant/components/skybeacon/sensor.py +++ b/homeassistant/components/skybeacon/sensor.py @@ -11,7 +11,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pygatt[GATTTOOL]==3.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/skybell/__init__.py b/homeassistant/components/skybell/__init__.py index b404a43bf3e..31d1339fbcf 100644 --- a/homeassistant/components/skybell/__init__.py +++ b/homeassistant/components/skybell/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['skybellpy==0.3.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/skybell/binary_sensor.py b/homeassistant/components/skybell/binary_sensor.py index 89878d0651b..8c2b8355258 100644 --- a/homeassistant/components/skybell/binary_sensor.py +++ b/homeassistant/components/skybell/binary_sensor.py @@ -12,7 +12,7 @@ import homeassistant.helpers.config_validation as cv from . import DEFAULT_ENTITY_NAMESPACE, DOMAIN as SKYBELL_DOMAIN, SkybellDevice - +DEPENDENCIES = ['skybell'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/skybell/camera.py b/homeassistant/components/skybell/camera.py index bad3d423a82..04b03f84bf7 100644 --- a/homeassistant/components/skybell/camera.py +++ b/homeassistant/components/skybell/camera.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv from . import DOMAIN as SKYBELL_DOMAIN, SkybellDevice - +DEPENDENCIES = ['skybell'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/skybell/light.py b/homeassistant/components/skybell/light.py index 491bfed953c..d413f9df412 100644 --- a/homeassistant/components/skybell/light.py +++ b/homeassistant/components/skybell/light.py @@ -7,7 +7,7 @@ import homeassistant.util.color as color_util from . import DOMAIN as SKYBELL_DOMAIN, SkybellDevice - +DEPENDENCIES = ['skybell'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/skybell/sensor.py b/homeassistant/components/skybell/sensor.py index e2bfcedf298..067e850dfcf 100644 --- a/homeassistant/components/skybell/sensor.py +++ b/homeassistant/components/skybell/sensor.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv from . import DEFAULT_ENTITY_NAMESPACE, DOMAIN as SKYBELL_DOMAIN, SkybellDevice - +DEPENDENCIES = ['skybell'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/skybell/switch.py b/homeassistant/components/skybell/switch.py index e41b2305220..674bbf22a08 100644 --- a/homeassistant/components/skybell/switch.py +++ b/homeassistant/components/skybell/switch.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv from . import DEFAULT_ENTITY_NAMESPACE, DOMAIN as SKYBELL_DOMAIN, SkybellDevice - +DEPENDENCIES = ['skybell'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/slack/notify.py b/homeassistant/components/slack/notify.py index cf879478c0d..026fed0a58e 100644 --- a/homeassistant/components/slack/notify.py +++ b/homeassistant/components/slack/notify.py @@ -12,7 +12,7 @@ from homeassistant.components.notify import ( ATTR_DATA, ATTR_TARGET, ATTR_TITLE, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['slacker==0.12.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sleepiq/__init__.py b/homeassistant/components/sleepiq/__init__.py index 99c66d6e707..7a23c6c4609 100644 --- a/homeassistant/components/sleepiq/__init__.py +++ b/homeassistant/components/sleepiq/__init__.py @@ -13,7 +13,7 @@ from homeassistant.util import Throttle DOMAIN = 'sleepiq' - +REQUIREMENTS = ['sleepyq==0.6'] MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=30) diff --git a/homeassistant/components/sleepiq/binary_sensor.py b/homeassistant/components/sleepiq/binary_sensor.py index e0843e67fd5..11f9e25d8c9 100644 --- a/homeassistant/components/sleepiq/binary_sensor.py +++ b/homeassistant/components/sleepiq/binary_sensor.py @@ -2,7 +2,7 @@ from homeassistant.components import sleepiq from homeassistant.components.binary_sensor import BinarySensorDevice - +DEPENDENCIES = ['sleepiq'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/sleepiq/sensor.py b/homeassistant/components/sleepiq/sensor.py index 86b9fc7fef5..3de444c3324 100644 --- a/homeassistant/components/sleepiq/sensor.py +++ b/homeassistant/components/sleepiq/sensor.py @@ -1,7 +1,7 @@ """Support for SleepIQ sensors.""" from homeassistant.components import sleepiq - +DEPENDENCIES = ['sleepiq'] ICON = 'mdi:hotel' diff --git a/homeassistant/components/sma/sensor.py b/homeassistant/components/sma/sensor.py index 718a6c1ffdd..a2ec7871f60 100644 --- a/homeassistant/components/sma/sensor.py +++ b/homeassistant/components/sma/sensor.py @@ -14,7 +14,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.helpers.event import async_track_time_interval - +REQUIREMENTS = ['pysma==0.3.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/smappee/__init__.py b/homeassistant/components/smappee/__init__.py index 8f01bd39217..7a495d7b89a 100644 --- a/homeassistant/components/smappee/__init__.py +++ b/homeassistant/components/smappee/__init__.py @@ -11,7 +11,7 @@ from homeassistant.util import Throttle from homeassistant.helpers.discovery import load_platform import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['smappy==0.2.16'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/smappee/sensor.py b/homeassistant/components/smappee/sensor.py index 39a2d98fde2..98527c769d9 100644 --- a/homeassistant/components/smappee/sensor.py +++ b/homeassistant/components/smappee/sensor.py @@ -7,7 +7,7 @@ from homeassistant.helpers.entity import Entity from . import DATA_SMAPPEE - +DEPENDENCIES = ['smappee'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/smappee/switch.py b/homeassistant/components/smappee/switch.py index 2f5737c9be5..963caf457fe 100644 --- a/homeassistant/components/smappee/switch.py +++ b/homeassistant/components/smappee/switch.py @@ -5,7 +5,7 @@ from homeassistant.components.switch import SwitchDevice from . import DATA_SMAPPEE - +DEPENDENCIES = ['smappee'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/smartthings/__init__.py b/homeassistant/components/smartthings/__init__.py index 15a9500150c..e5226076f46 100644 --- a/homeassistant/components/smartthings/__init__.py +++ b/homeassistant/components/smartthings/__init__.py @@ -28,8 +28,8 @@ from .smartapp import ( unload_smartapp_endpoint, validate_installed_app, validate_webhook_requirements) - - +REQUIREMENTS = ['pysmartapp==0.3.2', 'pysmartthings==0.6.7'] +DEPENDENCIES = ['webhook'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/smartthings/binary_sensor.py b/homeassistant/components/smartthings/binary_sensor.py index 3f6064a30dd..45101601d5f 100644 --- a/homeassistant/components/smartthings/binary_sensor.py +++ b/homeassistant/components/smartthings/binary_sensor.py @@ -6,7 +6,7 @@ from homeassistant.components.binary_sensor import BinarySensorDevice from . import SmartThingsEntity from .const import DATA_BROKERS, DOMAIN - +DEPENDENCIES = ['smartthings'] CAPABILITY_TO_ATTRIB = { 'accelerationSensor': 'acceleration', diff --git a/homeassistant/components/smartthings/climate.py b/homeassistant/components/smartthings/climate.py index 180008bcd3a..bcf2dc02cb0 100644 --- a/homeassistant/components/smartthings/climate.py +++ b/homeassistant/components/smartthings/climate.py @@ -17,7 +17,7 @@ from homeassistant.const import ( from . import SmartThingsEntity from .const import DATA_BROKERS, DOMAIN - +DEPENDENCIES = ['smartthings'] ATTR_OPERATION_STATE = 'operation_state' MODE_TO_STATE = { diff --git a/homeassistant/components/smartthings/cover.py b/homeassistant/components/smartthings/cover.py index 5c740e4dfde..53602c3643c 100644 --- a/homeassistant/components/smartthings/cover.py +++ b/homeassistant/components/smartthings/cover.py @@ -11,7 +11,7 @@ from homeassistant.const import ATTR_BATTERY_LEVEL from . import SmartThingsEntity from .const import DATA_BROKERS, DOMAIN - +DEPENDENCIES = ['smartthings'] VALUE_TO_STATE = { 'closed': STATE_CLOSED, diff --git a/homeassistant/components/smartthings/fan.py b/homeassistant/components/smartthings/fan.py index 128ead6cbb8..e722cd21d65 100644 --- a/homeassistant/components/smartthings/fan.py +++ b/homeassistant/components/smartthings/fan.py @@ -8,7 +8,7 @@ from homeassistant.components.fan import ( from . import SmartThingsEntity from .const import DATA_BROKERS, DOMAIN - +DEPENDENCIES = ['smartthings'] VALUE_TO_SPEED = { 0: SPEED_OFF, diff --git a/homeassistant/components/smartthings/light.py b/homeassistant/components/smartthings/light.py index 210f2caa86a..79a5eabc20a 100644 --- a/homeassistant/components/smartthings/light.py +++ b/homeassistant/components/smartthings/light.py @@ -11,7 +11,7 @@ import homeassistant.util.color as color_util from . import SmartThingsEntity from .const import DATA_BROKERS, DOMAIN - +DEPENDENCIES = ['smartthings'] async def async_setup_platform( diff --git a/homeassistant/components/smartthings/lock.py b/homeassistant/components/smartthings/lock.py index 56085ffbe2c..c7ab091454c 100644 --- a/homeassistant/components/smartthings/lock.py +++ b/homeassistant/components/smartthings/lock.py @@ -6,7 +6,7 @@ from homeassistant.components.lock import LockDevice from . import SmartThingsEntity from .const import DATA_BROKERS, DOMAIN - +DEPENDENCIES = ['smartthings'] ST_STATE_LOCKED = 'locked' ST_LOCK_ATTR_MAP = { diff --git a/homeassistant/components/smartthings/scene.py b/homeassistant/components/smartthings/scene.py index bf05d0e98ba..9bf3211d8e3 100644 --- a/homeassistant/components/smartthings/scene.py +++ b/homeassistant/components/smartthings/scene.py @@ -3,7 +3,7 @@ from homeassistant.components.scene import Scene from .const import DATA_BROKERS, DOMAIN - +DEPENDENCIES = ['smartthings'] async def async_setup_platform( diff --git a/homeassistant/components/smartthings/sensor.py b/homeassistant/components/smartthings/sensor.py index ee951dc9786..4f7ad1a1398 100644 --- a/homeassistant/components/smartthings/sensor.py +++ b/homeassistant/components/smartthings/sensor.py @@ -10,7 +10,7 @@ from homeassistant.const import ( from . import SmartThingsEntity from .const import DATA_BROKERS, DOMAIN - +DEPENDENCIES = ['smartthings'] Map = namedtuple("map", "attribute name default_unit device_class") diff --git a/homeassistant/components/smartthings/switch.py b/homeassistant/components/smartthings/switch.py index 1707597e4b8..d30aa3a2303 100644 --- a/homeassistant/components/smartthings/switch.py +++ b/homeassistant/components/smartthings/switch.py @@ -6,7 +6,7 @@ from homeassistant.components.switch import SwitchDevice from . import SmartThingsEntity from .const import DATA_BROKERS, DOMAIN - +DEPENDENCIES = ['smartthings'] async def async_setup_platform( diff --git a/homeassistant/components/smhi/__init__.py b/homeassistant/components/smhi/__init__.py index 3d9f29b0b75..608ee9b6a6d 100644 --- a/homeassistant/components/smhi/__init__.py +++ b/homeassistant/components/smhi/__init__.py @@ -6,7 +6,7 @@ from homeassistant.core import Config, HomeAssistant from .config_flow import smhi_locations # noqa: F401 from .const import DOMAIN # noqa: F401 - +REQUIREMENTS = ['smhi-pkg==1.0.10'] DEFAULT_NAME = 'smhi' diff --git a/homeassistant/components/smhi/weather.py b/homeassistant/components/smhi/weather.py index 9961f633779..fc3399f755c 100644 --- a/homeassistant/components/smhi/weather.py +++ b/homeassistant/components/smhi/weather.py @@ -19,7 +19,7 @@ from homeassistant.util import Throttle, slugify from .const import ATTR_SMHI_CLOUDINESS, ENTITY_ID_SENSOR_FORMAT - +DEPENDENCIES = ['smhi'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/snapcast/media_player.py b/homeassistant/components/snapcast/media_player.py index 3f43857929c..b1589c4db51 100644 --- a/homeassistant/components/snapcast/media_player.py +++ b/homeassistant/components/snapcast/media_player.py @@ -14,7 +14,7 @@ from homeassistant.const import ( STATE_PLAYING, STATE_UNKNOWN) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['snapcast==2.0.9'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/snips/__init__.py b/homeassistant/components/snips/__init__.py index 13b525ca140..0cc96d66b1a 100644 --- a/homeassistant/components/snips/__init__.py +++ b/homeassistant/components/snips/__init__.py @@ -10,7 +10,7 @@ from homeassistant.helpers import intent, config_validation as cv from homeassistant.components import mqtt DOMAIN = 'snips' - +DEPENDENCIES = ['mqtt'] CONF_INTENTS = 'intents' CONF_ACTION = 'action' diff --git a/homeassistant/components/snmp/device_tracker.py b/homeassistant/components/snmp/device_tracker.py index 5da930d1048..8a0fe7c6101 100644 --- a/homeassistant/components/snmp/device_tracker.py +++ b/homeassistant/components/snmp/device_tracker.py @@ -9,7 +9,7 @@ from homeassistant.components.device_tracker import ( DOMAIN, PLATFORM_SCHEMA, DeviceScanner) from homeassistant.const import CONF_HOST - +REQUIREMENTS = ['pysnmp==4.4.8'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/snmp/sensor.py b/homeassistant/components/snmp/sensor.py index cb2cab5cdb3..83d31118988 100644 --- a/homeassistant/components/snmp/sensor.py +++ b/homeassistant/components/snmp/sensor.py @@ -11,7 +11,7 @@ from homeassistant.const import ( CONF_HOST, CONF_NAME, CONF_PORT, CONF_UNIT_OF_MEASUREMENT, STATE_UNKNOWN, CONF_USERNAME, CONF_VALUE_TEMPLATE) - +REQUIREMENTS = ['pysnmp==4.4.8'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/snmp/switch.py b/homeassistant/components/snmp/switch.py index b709b747566..fdb3267a3c7 100644 --- a/homeassistant/components/snmp/switch.py +++ b/homeassistant/components/snmp/switch.py @@ -9,7 +9,7 @@ from homeassistant.const import ( CONF_USERNAME) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pysnmp==4.4.8'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sochain/sensor.py b/homeassistant/components/sochain/sensor.py index c827ac54ef2..ef6a53b7091 100644 --- a/homeassistant/components/sochain/sensor.py +++ b/homeassistant/components/sochain/sensor.py @@ -10,7 +10,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['python-sochain-api==0.0.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/socialblade/sensor.py b/homeassistant/components/socialblade/sensor.py index 33bd84548be..77433ac6d57 100644 --- a/homeassistant/components/socialblade/sensor.py +++ b/homeassistant/components/socialblade/sensor.py @@ -12,7 +12,7 @@ from homeassistant.util import Throttle _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['socialbladeclient==0.2'] CHANNEL_ID = 'channel_id' diff --git a/homeassistant/components/solaredge/sensor.py b/homeassistant/components/solaredge/sensor.py index 406e7ab217a..6c6d7557282 100644 --- a/homeassistant/components/solaredge/sensor.py +++ b/homeassistant/components/solaredge/sensor.py @@ -14,7 +14,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['solaredge==0.0.2', 'stringcase==1.2.0'] # Config for solaredge monitoring api requests. CONF_SITE_ID = "site_id" diff --git a/homeassistant/components/somfy_mylink/__init__.py b/homeassistant/components/somfy_mylink/__init__.py index 9a9728960c1..c8a6314acaa 100755 --- a/homeassistant/components/somfy_mylink/__init__.py +++ b/homeassistant/components/somfy_mylink/__init__.py @@ -8,7 +8,7 @@ from homeassistant.helpers import config_validation as cv from homeassistant.helpers.discovery import async_load_platform _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['somfy-mylink-synergy==1.0.4'] CONF_ENTITY_CONFIG = 'entity_config' CONF_SYSTEM_ID = 'system_id' CONF_REVERSE = 'reverse' diff --git a/homeassistant/components/somfy_mylink/cover.py b/homeassistant/components/somfy_mylink/cover.py index 9f926315861..e0b9eae36eb 100755 --- a/homeassistant/components/somfy_mylink/cover.py +++ b/homeassistant/components/somfy_mylink/cover.py @@ -7,7 +7,7 @@ from homeassistant.util import slugify from . import CONF_DEFAULT_REVERSE, DATA_SOMFY_MYLINK _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['somfy_mylink'] async def async_setup_platform(hass, diff --git a/homeassistant/components/songpal/media_player.py b/homeassistant/components/songpal/media_player.py index 2407a9b2030..842360484cf 100644 --- a/homeassistant/components/songpal/media_player.py +++ b/homeassistant/components/songpal/media_player.py @@ -16,7 +16,7 @@ from homeassistant.const import ( from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['python-songpal==0.0.9.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sonos/__init__.py b/homeassistant/components/sonos/__init__.py index a9cc4eeb2bc..d5f89cd074e 100644 --- a/homeassistant/components/sonos/__init__.py +++ b/homeassistant/components/sonos/__init__.py @@ -4,7 +4,7 @@ from homeassistant.helpers import config_entry_flow DOMAIN = 'sonos' - +REQUIREMENTS = ['pysonos==0.0.10'] async def async_setup(hass, config): diff --git a/homeassistant/components/sony_projector/switch.py b/homeassistant/components/sony_projector/switch.py index b3fca5c7226..5b3ffeed75f 100644 --- a/homeassistant/components/sony_projector/switch.py +++ b/homeassistant/components/sony_projector/switch.py @@ -8,7 +8,7 @@ from homeassistant.const import ( STATE_ON, STATE_OFF, CONF_NAME, CONF_HOST) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pysdcp==1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/soundtouch/media_player.py b/homeassistant/components/soundtouch/media_player.py index 2c7e08b9cbd..027fad43a40 100644 --- a/homeassistant/components/soundtouch/media_player.py +++ b/homeassistant/components/soundtouch/media_player.py @@ -15,7 +15,7 @@ from homeassistant.const import ( STATE_UNAVAILABLE) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['libsoundtouch==0.7.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/spaceapi/__init__.py b/homeassistant/components/spaceapi/__init__.py index 3bbfdd29789..fb76718f2d5 100644 --- a/homeassistant/components/spaceapi/__init__.py +++ b/homeassistant/components/spaceapi/__init__.py @@ -45,7 +45,7 @@ CONF_TEMPERATURE = 'temperature' CONF_TWITTER = 'twitter' DATA_SPACEAPI = 'data_spaceapi' - +DEPENDENCIES = ['http'] DOMAIN = 'spaceapi' ISSUE_REPORT_CHANNELS = [CONF_EMAIL, CONF_IRC, CONF_MAILING_LIST, CONF_TWITTER] diff --git a/homeassistant/components/spc/__init__.py b/homeassistant/components/spc/__init__.py index 2f322a6f990..8aafb6f1210 100644 --- a/homeassistant/components/spc/__init__.py +++ b/homeassistant/components/spc/__init__.py @@ -7,7 +7,7 @@ from homeassistant.helpers import discovery, aiohttp_client from homeassistant.helpers.dispatcher import async_dispatcher_send import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyspcwebgw==0.4.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/speedtestdotnet/__init__.py b/homeassistant/components/speedtestdotnet/__init__.py index 6a7f190a571..48953874e8c 100644 --- a/homeassistant/components/speedtestdotnet/__init__.py +++ b/homeassistant/components/speedtestdotnet/__init__.py @@ -14,7 +14,7 @@ from homeassistant.helpers.dispatcher import dispatcher_send from homeassistant.helpers.event import async_track_time_interval from .const import DATA_UPDATED, DOMAIN, SENSOR_TYPES - +REQUIREMENTS = ['speedtest-cli==2.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/speedtestdotnet/sensor.py b/homeassistant/components/speedtestdotnet/sensor.py index 001089dfe01..fb92bb76ac8 100644 --- a/homeassistant/components/speedtestdotnet/sensor.py +++ b/homeassistant/components/speedtestdotnet/sensor.py @@ -9,7 +9,7 @@ from homeassistant.helpers.restore_state import RestoreEntity from .const import ( DATA_UPDATED, DOMAIN as SPEEDTESTDOTNET_DOMAIN, SENSOR_TYPES) - +DEPENDENCIES = ['speedtestdotnet'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/spider/__init__.py b/homeassistant/components/spider/__init__.py index bbca33fc4f0..b565f183457 100644 --- a/homeassistant/components/spider/__init__.py +++ b/homeassistant/components/spider/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.discovery import load_platform - +REQUIREMENTS = ['spiderpy==1.3.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/spider/climate.py b/homeassistant/components/spider/climate.py index 3062edd0d07..3b612441a88 100644 --- a/homeassistant/components/spider/climate.py +++ b/homeassistant/components/spider/climate.py @@ -10,7 +10,7 @@ from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS from . import DOMAIN as SPIDER_DOMAIN - +DEPENDENCIES = ['spider'] FAN_LIST = [ 'Auto', diff --git a/homeassistant/components/spider/switch.py b/homeassistant/components/spider/switch.py index c420ece17b0..e43762be460 100644 --- a/homeassistant/components/spider/switch.py +++ b/homeassistant/components/spider/switch.py @@ -5,7 +5,7 @@ from homeassistant.components.switch import SwitchDevice from . import DOMAIN as SPIDER_DOMAIN - +DEPENDENCIES = ['spider'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/spotcrime/sensor.py b/homeassistant/components/spotcrime/sensor.py index 7c5375db7af..fa9cfa687ec 100644 --- a/homeassistant/components/spotcrime/sensor.py +++ b/homeassistant/components/spotcrime/sensor.py @@ -15,7 +15,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.util import slugify import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['spotcrime==1.0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/spotify/media_player.py b/homeassistant/components/spotify/media_player.py index c7b56fcd091..b9252d5035b 100644 --- a/homeassistant/components/spotify/media_player.py +++ b/homeassistant/components/spotify/media_player.py @@ -16,7 +16,7 @@ from homeassistant.const import ( from homeassistant.core import callback import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['spotipy-homeassistant==2.4.4.dev1'] _LOGGER = logging.getLogger(__name__) @@ -35,7 +35,7 @@ CONFIGURATOR_SUBMIT_CAPTION = 'I authorized successfully' DEFAULT_CACHE_PATH = '.spotify-token-cache' DEFAULT_NAME = 'Spotify' - +DEPENDENCIES = ['http'] DOMAIN = 'spotify' ICON = 'mdi:spotify' diff --git a/homeassistant/components/sql/sensor.py b/homeassistant/components/sql/sensor.py index 1ee4b71fa21..bc40d5efb42 100644 --- a/homeassistant/components/sql/sensor.py +++ b/homeassistant/components/sql/sensor.py @@ -15,7 +15,7 @@ from homeassistant.helpers.entity import Entity _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['sqlalchemy==1.3.0'] CONF_COLUMN_NAME = 'column' CONF_QUERIES = 'queries' diff --git a/homeassistant/components/srp_energy/sensor.py b/homeassistant/components/srp_energy/sensor.py index 6da48df6c44..0ebae427da1 100644 --- a/homeassistant/components/srp_energy/sensor.py +++ b/homeassistant/components/srp_energy/sensor.py @@ -14,7 +14,7 @@ from homeassistant.util import Throttle from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['srpenergy==1.0.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/starlingbank/sensor.py b/homeassistant/components/starlingbank/sensor.py index 79116047712..00640ea4963 100644 --- a/homeassistant/components/starlingbank/sensor.py +++ b/homeassistant/components/starlingbank/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import CONF_ACCESS_TOKEN, CONF_NAME import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['starlingbank==3.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/startca/sensor.py b/homeassistant/components/startca/sensor.py index ea9b57862b7..1e57a4cf859 100644 --- a/homeassistant/components/startca/sensor.py +++ b/homeassistant/components/startca/sensor.py @@ -14,7 +14,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['xmltodict==0.11.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/statsd/__init__.py b/homeassistant/components/statsd/__init__.py index aaf2ac9fccb..a8c34d0a843 100644 --- a/homeassistant/components/statsd/__init__.py +++ b/homeassistant/components/statsd/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers import state as state_helper - +REQUIREMENTS = ['statsd==3.2.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/steam_online/sensor.py b/homeassistant/components/steam_online/sensor.py index 7c09bde2685..4b4b73ad8cf 100644 --- a/homeassistant/components/steam_online/sensor.py +++ b/homeassistant/components/steam_online/sensor.py @@ -8,7 +8,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.const import CONF_API_KEY import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['steamodd==4.21'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/stream/__init__.py b/homeassistant/components/stream/__init__.py index 49a015dc31f..43debc504e1 100644 --- a/homeassistant/components/stream/__init__.py +++ b/homeassistant/components/stream/__init__.py @@ -19,11 +19,11 @@ from .worker import stream_worker from .hls import async_setup_hls from .recorder import async_setup_recorder - +REQUIREMENTS = ['av==6.1.2'] _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['http'] CONFIG_SCHEMA = vol.Schema({ DOMAIN: vol.Schema({}), diff --git a/homeassistant/components/stride/notify.py b/homeassistant/components/stride/notify.py index 27ffdffca8e..fa08697d798 100644 --- a/homeassistant/components/stride/notify.py +++ b/homeassistant/components/stride/notify.py @@ -10,7 +10,7 @@ from homeassistant.components.notify import (ATTR_DATA, ATTR_TARGET, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['pystride==0.1.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/swiss_hydrological_data/sensor.py b/homeassistant/components/swiss_hydrological_data/sensor.py index 0b2a52d5026..84964a94cbd 100644 --- a/homeassistant/components/swiss_hydrological_data/sensor.py +++ b/homeassistant/components/swiss_hydrological_data/sensor.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['swisshydrodata==0.0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/swiss_public_transport/sensor.py b/homeassistant/components/swiss_public_transport/sensor.py index b49aafca821..8d6b7fdee0e 100644 --- a/homeassistant/components/swiss_public_transport/sensor.py +++ b/homeassistant/components/swiss_public_transport/sensor.py @@ -11,7 +11,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['python_opendata_transport==0.1.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/switch/__init__.py b/homeassistant/components/switch/__init__.py index cea32fb2b0d..7e89a5369c8 100644 --- a/homeassistant/components/switch/__init__.py +++ b/homeassistant/components/switch/__init__.py @@ -16,7 +16,7 @@ from homeassistant.const import ( from homeassistant.components import group DOMAIN = 'switch' - +DEPENDENCIES = ['group'] SCAN_INTERVAL = timedelta(seconds=30) GROUP_NAME_ALL_SWITCHES = 'all switches' diff --git a/homeassistant/components/switchbot/switch.py b/homeassistant/components/switchbot/switch.py index eea96b58925..3db9b5fd226 100644 --- a/homeassistant/components/switchbot/switch.py +++ b/homeassistant/components/switchbot/switch.py @@ -8,7 +8,7 @@ from homeassistant.components.switch import SwitchDevice, PLATFORM_SCHEMA from homeassistant.const import CONF_NAME, CONF_MAC from homeassistant.helpers.restore_state import RestoreEntity - +REQUIREMENTS = ['PySwitchbot==0.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/switchmate/switch.py b/homeassistant/components/switchmate/switch.py index 0b9671c6015..c14a6ca8087 100644 --- a/homeassistant/components/switchmate/switch.py +++ b/homeassistant/components/switchmate/switch.py @@ -8,7 +8,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.components.switch import SwitchDevice, PLATFORM_SCHEMA from homeassistant.const import CONF_NAME, CONF_MAC - +REQUIREMENTS = ['pySwitchmate==0.4.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/syncthru/sensor.py b/homeassistant/components/syncthru/sensor.py index 9a170ad6fd8..5596d4ab86a 100644 --- a/homeassistant/components/syncthru/sensor.py +++ b/homeassistant/components/syncthru/sensor.py @@ -9,7 +9,7 @@ from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv from homeassistant.components.sensor import PLATFORM_SCHEMA - +REQUIREMENTS = ['pysyncthru==0.3.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/synology/camera.py b/homeassistant/components/synology/camera.py index ba5da5b747d..c452f60cc2a 100644 --- a/homeassistant/components/synology/camera.py +++ b/homeassistant/components/synology/camera.py @@ -14,7 +14,7 @@ from homeassistant.helpers.aiohttp_client import ( async_get_clientsession) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['py-synology==0.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/synology_srm/device_tracker.py b/homeassistant/components/synology_srm/device_tracker.py index 7b214c96fa3..bf5653d681b 100644 --- a/homeassistant/components/synology_srm/device_tracker.py +++ b/homeassistant/components/synology_srm/device_tracker.py @@ -13,7 +13,7 @@ from homeassistant.const import ( CONF_HOST, CONF_USERNAME, CONF_PASSWORD, CONF_PORT, CONF_SSL, CONF_VERIFY_SSL) - +REQUIREMENTS = ['synology-srm==0.0.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/synologydsm/sensor.py b/homeassistant/components/synologydsm/sensor.py index a00dc973bed..0d5a253483f 100644 --- a/homeassistant/components/synologydsm/sensor.py +++ b/homeassistant/components/synologydsm/sensor.py @@ -13,7 +13,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['python-synology==0.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/system_health/__init__.py b/homeassistant/components/system_health/__init__.py index 26cfb4da613..9a171296ce9 100644 --- a/homeassistant/components/system_health/__init__.py +++ b/homeassistant/components/system_health/__init__.py @@ -14,7 +14,7 @@ from homeassistant.loader import bind_hass _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['http'] DOMAIN = 'system_health' INFO_CALLBACK_TIMEOUT = 5 diff --git a/homeassistant/components/system_log/__init__.py b/homeassistant/components/system_log/__init__.py index 6c3e1cf6085..d6877c32f0d 100644 --- a/homeassistant/components/system_log/__init__.py +++ b/homeassistant/components/system_log/__init__.py @@ -20,7 +20,7 @@ CONF_LOGGER = 'logger' DATA_SYSTEM_LOG = 'system_log' DEFAULT_MAX_ENTRIES = 50 DEFAULT_FIRE_EVENT = False - +DEPENDENCIES = ['http'] DOMAIN = 'system_log' EVENT_SYSTEM_LOG = 'system_log_event' diff --git a/homeassistant/components/systemmonitor/sensor.py b/homeassistant/components/systemmonitor/sensor.py index db465ff359c..cf65daa4395 100644 --- a/homeassistant/components/systemmonitor/sensor.py +++ b/homeassistant/components/systemmonitor/sensor.py @@ -12,7 +12,7 @@ from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['psutil==5.6.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/sytadin/sensor.py b/homeassistant/components/sytadin/sensor.py index 139c643b14f..517deda7ca2 100644 --- a/homeassistant/components/sytadin/sensor.py +++ b/homeassistant/components/sytadin/sensor.py @@ -13,7 +13,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['beautifulsoup4==4.7.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tado/__init__.py b/homeassistant/components/tado/__init__.py index 835b2ba198b..8d3f541972e 100644 --- a/homeassistant/components/tado/__init__.py +++ b/homeassistant/components/tado/__init__.py @@ -10,7 +10,7 @@ from homeassistant.helpers import config_validation as cv from homeassistant.const import CONF_USERNAME, CONF_PASSWORD from homeassistant.util import Throttle - +REQUIREMENTS = ['python-tado==0.2.9'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tahoma/__init__.py b/homeassistant/components/tahoma/__init__.py index 943b2809d8a..1807667da87 100644 --- a/homeassistant/components/tahoma/__init__.py +++ b/homeassistant/components/tahoma/__init__.py @@ -9,7 +9,7 @@ from homeassistant.helpers import discovery from homeassistant.helpers import config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['tahoma-api==0.0.14'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tahoma/binary_sensor.py b/homeassistant/components/tahoma/binary_sensor.py index 74590eef9e0..948c6f90a58 100644 --- a/homeassistant/components/tahoma/binary_sensor.py +++ b/homeassistant/components/tahoma/binary_sensor.py @@ -7,7 +7,7 @@ from homeassistant.const import ATTR_BATTERY_LEVEL, STATE_OFF, STATE_ON from . import DOMAIN as TAHOMA_DOMAIN, TahomaDevice - +DEPENDENCIES = ['tahoma'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tahoma/cover.py b/homeassistant/components/tahoma/cover.py index 8a3a4853a6a..85e785f9ca3 100644 --- a/homeassistant/components/tahoma/cover.py +++ b/homeassistant/components/tahoma/cover.py @@ -7,7 +7,7 @@ from homeassistant.util.dt import utcnow from . import DOMAIN as TAHOMA_DOMAIN, TahomaDevice - +DEPENDENCIES = ['tahoma'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tahoma/scene.py b/homeassistant/components/tahoma/scene.py index 28d773d3cb2..eedb95d1a77 100644 --- a/homeassistant/components/tahoma/scene.py +++ b/homeassistant/components/tahoma/scene.py @@ -5,7 +5,7 @@ from homeassistant.components.scene import Scene from . import DOMAIN as TAHOMA_DOMAIN - +DEPENDENCIES = ['tahoma'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tahoma/sensor.py b/homeassistant/components/tahoma/sensor.py index d62d5a4cd01..3c03911804a 100644 --- a/homeassistant/components/tahoma/sensor.py +++ b/homeassistant/components/tahoma/sensor.py @@ -7,7 +7,7 @@ from homeassistant.helpers.entity import Entity from . import DOMAIN as TAHOMA_DOMAIN, TahomaDevice - +DEPENDENCIES = ['tahoma'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tahoma/switch.py b/homeassistant/components/tahoma/switch.py index 4b3c179b96d..71f00ed8937 100644 --- a/homeassistant/components/tahoma/switch.py +++ b/homeassistant/components/tahoma/switch.py @@ -6,7 +6,7 @@ from homeassistant.const import STATE_OFF, STATE_ON from . import DOMAIN as TAHOMA_DOMAIN, TahomaDevice - +DEPENDENCIES = ['tahoma'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tapsaff/binary_sensor.py b/homeassistant/components/tapsaff/binary_sensor.py index ea3755c3eac..639e9574ed9 100644 --- a/homeassistant/components/tapsaff/binary_sensor.py +++ b/homeassistant/components/tapsaff/binary_sensor.py @@ -9,7 +9,7 @@ from homeassistant.components.binary_sensor import ( from homeassistant.const import CONF_NAME import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['tapsaff==0.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tautulli/sensor.py b/homeassistant/components/tautulli/sensor.py index 7c3f67910da..44be10749bf 100644 --- a/homeassistant/components/tautulli/sensor.py +++ b/homeassistant/components/tautulli/sensor.py @@ -14,7 +14,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['pytautulli==0.5.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ted5000/sensor.py b/homeassistant/components/ted5000/sensor.py index eb3d0adcd89..fba9866302d 100644 --- a/homeassistant/components/ted5000/sensor.py +++ b/homeassistant/components/ted5000/sensor.py @@ -12,7 +12,7 @@ from homeassistant.helpers import config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['xmltodict==0.11.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/telegram/notify.py b/homeassistant/components/telegram/notify.py index eab83791fbe..3602bbd2441 100644 --- a/homeassistant/components/telegram/notify.py +++ b/homeassistant/components/telegram/notify.py @@ -12,7 +12,7 @@ from homeassistant.components.notify import ( _LOGGER = logging.getLogger(__name__) DOMAIN = 'telegram_bot' - +DEPENDENCIES = [DOMAIN] ATTR_KEYBOARD = 'keyboard' ATTR_INLINE_KEYBOARD = 'inline_keyboard' diff --git a/homeassistant/components/telegram_bot/__init__.py b/homeassistant/components/telegram_bot/__init__.py index 76877dc2c27..7d19e8212b6 100644 --- a/homeassistant/components/telegram_bot/__init__.py +++ b/homeassistant/components/telegram_bot/__init__.py @@ -16,7 +16,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.exceptions import TemplateError - +REQUIREMENTS = ['python-telegram-bot==11.1.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/telegram_bot/webhooks.py b/homeassistant/components/telegram_bot/webhooks.py index 0595e5d40c7..424ece81549 100644 --- a/homeassistant/components/telegram_bot/webhooks.py +++ b/homeassistant/components/telegram_bot/webhooks.py @@ -15,7 +15,7 @@ from . import ( CONF_ALLOWED_CHAT_IDS, PLATFORM_SCHEMA, BaseTelegramBotEntity, initialize_bot) - +DEPENDENCIES = ['http'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tellduslive/__init__.py b/homeassistant/components/tellduslive/__init__.py index 51b9152abf8..64f4a0102a1 100644 --- a/homeassistant/components/tellduslive/__init__.py +++ b/homeassistant/components/tellduslive/__init__.py @@ -19,7 +19,7 @@ from .const import ( APPLICATION_NAME = 'Home Assistant' - +REQUIREMENTS = ['tellduslive==0.10.10'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tellstick/__init__.py b/homeassistant/components/tellstick/__init__.py index d0606f2b507..c35d2f79027 100644 --- a/homeassistant/components/tellstick/__init__.py +++ b/homeassistant/components/tellstick/__init__.py @@ -11,7 +11,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['tellcore-py==1.1.2', 'tellcore-net==0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tellstick/sensor.py b/homeassistant/components/tellstick/sensor.py index 31a21f8be99..0438ad79abc 100644 --- a/homeassistant/components/tellstick/sensor.py +++ b/homeassistant/components/tellstick/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import TEMP_CELSIUS, CONF_ID, CONF_NAME from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv - +DEPENDENCIES = ['tellstick'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/temper/sensor.py b/homeassistant/components/temper/sensor.py index f5bf23d8a30..1c6cb9fdff4 100644 --- a/homeassistant/components/temper/sensor.py +++ b/homeassistant/components/temper/sensor.py @@ -8,7 +8,7 @@ from homeassistant.helpers.entity import Entity _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['temperusb==1.5.3'] CONF_SCALE = 'scale' CONF_OFFSET = 'offset' diff --git a/homeassistant/components/tensorflow/image_processing.py b/homeassistant/components/tensorflow/image_processing.py index feb5df7d4f4..4e4a80a525e 100644 --- a/homeassistant/components/tensorflow/image_processing.py +++ b/homeassistant/components/tensorflow/image_processing.py @@ -12,7 +12,7 @@ from homeassistant.core import split_entity_id from homeassistant.helpers import template import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['numpy==1.16.2', 'pillow==5.4.1', 'protobuf==3.6.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tesla/__init__.py b/homeassistant/components/tesla/__init__.py index 3304c344a83..244538f5f46 100644 --- a/homeassistant/components/tesla/__init__.py +++ b/homeassistant/components/tesla/__init__.py @@ -11,7 +11,7 @@ from homeassistant.helpers import discovery from homeassistant.helpers.entity import Entity from homeassistant.util import slugify - +REQUIREMENTS = ['teslajsonpy==0.0.25'] DOMAIN = 'tesla' diff --git a/homeassistant/components/tesla/binary_sensor.py b/homeassistant/components/tesla/binary_sensor.py index 18ef6288069..a87239d2430 100644 --- a/homeassistant/components/tesla/binary_sensor.py +++ b/homeassistant/components/tesla/binary_sensor.py @@ -8,7 +8,7 @@ from . import DOMAIN as TESLA_DOMAIN, TeslaDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['tesla'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/tesla/climate.py b/homeassistant/components/tesla/climate.py index 080515e34ad..603ce1a4d61 100644 --- a/homeassistant/components/tesla/climate.py +++ b/homeassistant/components/tesla/climate.py @@ -11,7 +11,7 @@ from . import DOMAIN as TESLA_DOMAIN, TeslaDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['tesla'] OPERATION_LIST = [STATE_ON, STATE_OFF] diff --git a/homeassistant/components/tesla/device_tracker.py b/homeassistant/components/tesla/device_tracker.py index b52b0163a6c..5a7693d8370 100644 --- a/homeassistant/components/tesla/device_tracker.py +++ b/homeassistant/components/tesla/device_tracker.py @@ -8,7 +8,7 @@ from . import DOMAIN as TESLA_DOMAIN _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['tesla'] def setup_scanner(hass, config, see, discovery_info=None): diff --git a/homeassistant/components/tesla/lock.py b/homeassistant/components/tesla/lock.py index aafd445b76d..ade394496d6 100644 --- a/homeassistant/components/tesla/lock.py +++ b/homeassistant/components/tesla/lock.py @@ -8,7 +8,7 @@ from . import DOMAIN as TESLA_DOMAIN, TeslaDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['tesla'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/tesla/sensor.py b/homeassistant/components/tesla/sensor.py index e8f419ce57b..99705d3f793 100644 --- a/homeassistant/components/tesla/sensor.py +++ b/homeassistant/components/tesla/sensor.py @@ -11,7 +11,7 @@ from . import DOMAIN as TESLA_DOMAIN, TeslaDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['tesla'] SCAN_INTERVAL = timedelta(minutes=5) diff --git a/homeassistant/components/tesla/switch.py b/homeassistant/components/tesla/switch.py index 5c8982781b6..e00164ff1a7 100644 --- a/homeassistant/components/tesla/switch.py +++ b/homeassistant/components/tesla/switch.py @@ -7,7 +7,7 @@ from homeassistant.const import STATE_OFF, STATE_ON from . import DOMAIN as TESLA_DOMAIN, TeslaDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['tesla'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/tfiac/climate.py b/homeassistant/components/tfiac/climate.py index fa69c217902..44fa1909823 100644 --- a/homeassistant/components/tfiac/climate.py +++ b/homeassistant/components/tfiac/climate.py @@ -13,7 +13,7 @@ from homeassistant.components.climate.const import ( from homeassistant.const import ATTR_TEMPERATURE, CONF_HOST, TEMP_FAHRENHEIT import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pytfiac==0.3'] SCAN_INTERVAL = timedelta(seconds=60) diff --git a/homeassistant/components/thermoworks_smoke/sensor.py b/homeassistant/components/thermoworks_smoke/sensor.py index b3bdb145cf5..0c6cddd9fcd 100644 --- a/homeassistant/components/thermoworks_smoke/sensor.py +++ b/homeassistant/components/thermoworks_smoke/sensor.py @@ -17,7 +17,7 @@ from homeassistant.const import TEMP_FAHRENHEIT, CONF_EMAIL, CONF_PASSWORD,\ CONF_MONITORED_CONDITIONS, CONF_EXCLUDE, ATTR_BATTERY_LEVEL from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['thermoworks_smoke==0.1.8', 'stringcase==1.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/thethingsnetwork/sensor.py b/homeassistant/components/thethingsnetwork/sensor.py index c6611c2e3cb..d59b429721b 100644 --- a/homeassistant/components/thethingsnetwork/sensor.py +++ b/homeassistant/components/thethingsnetwork/sensor.py @@ -22,7 +22,7 @@ ATTR_RAW = 'raw' ATTR_TIME = 'time' DEFAULT_TIMEOUT = 10 - +DEPENDENCIES = ['thethingsnetwork'] CONF_DEVICE_ID = 'device_id' CONF_VALUES = 'values' diff --git a/homeassistant/components/thingspeak/__init__.py b/homeassistant/components/thingspeak/__init__.py index 6e22e6158f3..0fa15e7efb4 100644 --- a/homeassistant/components/thingspeak/__init__.py +++ b/homeassistant/components/thingspeak/__init__.py @@ -9,7 +9,7 @@ from homeassistant.const import ( from homeassistant.helpers import event, state as state_helper import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['thingspeak==0.4.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/thinkingcleaner/sensor.py b/homeassistant/components/thinkingcleaner/sensor.py index 0f4a90c32a9..f8462435a45 100644 --- a/homeassistant/components/thinkingcleaner/sensor.py +++ b/homeassistant/components/thinkingcleaner/sensor.py @@ -7,7 +7,7 @@ from homeassistant.helpers.entity import Entity _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pythinkingcleaner==0.0.3'] MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10) MIN_TIME_BETWEEN_FORCED_SCANS = timedelta(milliseconds=100) diff --git a/homeassistant/components/thinkingcleaner/switch.py b/homeassistant/components/thinkingcleaner/switch.py index 006b5a7ad5b..38a96eb0298 100644 --- a/homeassistant/components/thinkingcleaner/switch.py +++ b/homeassistant/components/thinkingcleaner/switch.py @@ -9,7 +9,7 @@ from homeassistant.helpers.entity import ToggleEntity _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pythinkingcleaner==0.0.3'] MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10) MIN_TIME_BETWEEN_FORCED_SCANS = timedelta(milliseconds=100) diff --git a/homeassistant/components/tibber/__init__.py b/homeassistant/components/tibber/__init__.py index 822dfb7e497..19cf6fe6525 100644 --- a/homeassistant/components/tibber/__init__.py +++ b/homeassistant/components/tibber/__init__.py @@ -11,7 +11,7 @@ from homeassistant.const import (EVENT_HOMEASSISTANT_STOP, CONF_ACCESS_TOKEN, from homeassistant.helpers import discovery from homeassistant.helpers.aiohttp_client import async_get_clientsession - +REQUIREMENTS = ['pyTibber==0.10.1'] DOMAIN = 'tibber' diff --git a/homeassistant/components/tikteck/light.py b/homeassistant/components/tikteck/light.py index 7aa2a1d11ba..4f5596c71be 100644 --- a/homeassistant/components/tikteck/light.py +++ b/homeassistant/components/tikteck/light.py @@ -10,7 +10,7 @@ from homeassistant.components.light import ( import homeassistant.helpers.config_validation as cv import homeassistant.util.color as color_util - +REQUIREMENTS = ['tikteck==0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tile/device_tracker.py b/homeassistant/components/tile/device_tracker.py index 41e2330b436..c471c1e23b4 100644 --- a/homeassistant/components/tile/device_tracker.py +++ b/homeassistant/components/tile/device_tracker.py @@ -13,7 +13,7 @@ from homeassistant.util import slugify from homeassistant.util.json import load_json, save_json _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pytile==2.0.6'] CLIENT_UUID_CONFIG_FILE = '.tile.conf' DEVICE_TYPES = ['PHONE', 'TILE'] diff --git a/homeassistant/components/todoist/calendar.py b/homeassistant/components/todoist/calendar.py index 8ad2f4371df..313935e1221 100644 --- a/homeassistant/components/todoist/calendar.py +++ b/homeassistant/components/todoist/calendar.py @@ -12,7 +12,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.template import DATE_STR_FORMAT from homeassistant.util import Throttle, dt - +REQUIREMENTS = ['todoist-python==7.0.17'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tof/sensor.py b/homeassistant/components/tof/sensor.py index 16d9592dab3..a403db03682 100644 --- a/homeassistant/components/tof/sensor.py +++ b/homeassistant/components/tof/sensor.py @@ -12,9 +12,9 @@ from homeassistant.components import rpi_gpio from homeassistant.const import CONF_NAME from homeassistant.helpers.entity import Entity +REQUIREMENTS = ['VL53L1X2==0.1.5'] - - +DEPENDENCIES = ['rpi_gpio'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/toon/__init__.py b/homeassistant/components/toon/__init__.py index 74851f095d4..d718b5895e4 100644 --- a/homeassistant/components/toon/__init__.py +++ b/homeassistant/components/toon/__init__.py @@ -16,7 +16,7 @@ from .const import ( CONF_CLIENT_ID, CONF_CLIENT_SECRET, CONF_DISPLAY, CONF_TENANT, DATA_TOON_CLIENT, DATA_TOON_CONFIG, DOMAIN) - +REQUIREMENTS = ['toonapilib==3.2.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/toon/binary_sensor.py b/homeassistant/components/toon/binary_sensor.py index 6e7a36a8c99..694b7d1d033 100644 --- a/homeassistant/components/toon/binary_sensor.py +++ b/homeassistant/components/toon/binary_sensor.py @@ -12,7 +12,7 @@ from . import (ToonEntity, ToonDisplayDeviceEntity, ToonBoilerDeviceEntity, ToonBoilerModuleDeviceEntity) from .const import DATA_TOON_CLIENT, DOMAIN - +DEPENDENCIES = ['toon'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/toon/climate.py b/homeassistant/components/toon/climate.py index e027cd58693..f09dc010c79 100644 --- a/homeassistant/components/toon/climate.py +++ b/homeassistant/components/toon/climate.py @@ -15,7 +15,7 @@ from homeassistant.helpers.typing import HomeAssistantType from . import ToonDisplayDeviceEntity from .const import DATA_TOON_CLIENT, DEFAULT_MAX_TEMP, DEFAULT_MIN_TEMP, DOMAIN - +DEPENDENCIES = ['toon'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/toon/sensor.py b/homeassistant/components/toon/sensor.py index 71bf72de001..f58c8ef4840 100644 --- a/homeassistant/components/toon/sensor.py +++ b/homeassistant/components/toon/sensor.py @@ -11,7 +11,7 @@ from . import (ToonEntity, ToonElectricityMeterDeviceEntity, from .const import (CURRENCY_EUR, DATA_TOON_CLIENT, DOMAIN, POWER_KWH, POWER_WATT, VOLUME_CM3, VOLUME_M3, RATIO_PERCENT) - +DEPENDENCIES = ['toon'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/torque/sensor.py b/homeassistant/components/torque/sensor.py index 00cb2948d56..2f947c178b8 100644 --- a/homeassistant/components/torque/sensor.py +++ b/homeassistant/components/torque/sensor.py @@ -16,7 +16,7 @@ _LOGGER = logging.getLogger(__name__) API_PATH = '/api/torque' DEFAULT_NAME = 'vehicle' - +DEPENDENCIES = ['http'] DOMAIN = 'torque' ENTITY_NAME_FORMAT = '{0} {1}' diff --git a/homeassistant/components/totalconnect/alarm_control_panel.py b/homeassistant/components/totalconnect/alarm_control_panel.py index b55b3a447c5..c56c4ed95a6 100644 --- a/homeassistant/components/totalconnect/alarm_control_panel.py +++ b/homeassistant/components/totalconnect/alarm_control_panel.py @@ -13,7 +13,7 @@ from homeassistant.const import ( STATE_ALARM_ARMED_CUSTOM_BYPASS) - +REQUIREMENTS = ['total_connect_client==0.25'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/touchline/climate.py b/homeassistant/components/touchline/climate.py index d30efaa01e4..e003ea257d7 100644 --- a/homeassistant/components/touchline/climate.py +++ b/homeassistant/components/touchline/climate.py @@ -9,7 +9,7 @@ from homeassistant.components.climate.const import ( from homeassistant.const import CONF_HOST, TEMP_CELSIUS, ATTR_TEMPERATURE import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pytouchline==0.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tplink/__init__.py b/homeassistant/components/tplink/__init__.py index f1eb03dca7d..9fc12db0d63 100644 --- a/homeassistant/components/tplink/__init__.py +++ b/homeassistant/components/tplink/__init__.py @@ -33,7 +33,7 @@ CONFIG_SCHEMA = vol.Schema({ }), }, extra=vol.ALLOW_EXTRA) - +REQUIREMENTS = ['pyHS100==0.3.4'] async def _async_has_devices(hass): diff --git a/homeassistant/components/tplink/device_tracker.py b/homeassistant/components/tplink/device_tracker.py index 2c7cae4d296..7f5c4a37d24 100644 --- a/homeassistant/components/tplink/device_tracker.py +++ b/homeassistant/components/tplink/device_tracker.py @@ -17,7 +17,7 @@ from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_USERNAME, HTTP_HEADER_X_REQUESTED_WITH) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['tplink==0.2.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tplink/light.py b/homeassistant/components/tplink/light.py index d4eae3e6dc7..9f13766c4ef 100644 --- a/homeassistant/components/tplink/light.py +++ b/homeassistant/components/tplink/light.py @@ -12,7 +12,7 @@ from homeassistant.util.color import ( from . import CONF_LIGHT, DOMAIN as TPLINK_DOMAIN - +DEPENDENCIES = ['tplink'] PARALLEL_UPDATES = 0 diff --git a/homeassistant/components/tplink/switch.py b/homeassistant/components/tplink/switch.py index 95f8e811bba..a4eeadd1c60 100644 --- a/homeassistant/components/tplink/switch.py +++ b/homeassistant/components/tplink/switch.py @@ -9,7 +9,7 @@ import homeassistant.helpers.device_registry as dr from . import CONF_SWITCH, DOMAIN as TPLINK_DOMAIN - +DEPENDENCIES = ['tplink'] PARALLEL_UPDATES = 0 diff --git a/homeassistant/components/tplink_lte/__init__.py b/homeassistant/components/tplink_lte/__init__.py index da50c7b425b..ae0b73d1c7c 100644 --- a/homeassistant/components/tplink_lte/__init__.py +++ b/homeassistant/components/tplink_lte/__init__.py @@ -14,7 +14,7 @@ from homeassistant.core import callback from homeassistant.helpers import config_validation as cv, discovery from homeassistant.helpers.aiohttp_client import async_create_clientsession - +REQUIREMENTS = ['tp-connected==0.0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tplink_lte/notify.py b/homeassistant/components/tplink_lte/notify.py index 3fdbd2ccddf..519641ed34b 100644 --- a/homeassistant/components/tplink_lte/notify.py +++ b/homeassistant/components/tplink_lte/notify.py @@ -9,7 +9,7 @@ from homeassistant.const import CONF_RECIPIENT from ..tplink_lte import DATA_KEY - +DEPENDENCIES = ['tplink_lte'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/traccar/device_tracker.py b/homeassistant/components/traccar/device_tracker.py index 0fbf9886f11..28d13dd4fe6 100644 --- a/homeassistant/components/traccar/device_tracker.py +++ b/homeassistant/components/traccar/device_tracker.py @@ -16,7 +16,7 @@ from homeassistant.helpers.event import async_track_time_interval from homeassistant.util import slugify - +REQUIREMENTS = ['pytraccar==0.5.0', 'stringcase==1.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/trackr/device_tracker.py b/homeassistant/components/trackr/device_tracker.py index fc3828068d6..1322fde7e1a 100644 --- a/homeassistant/components/trackr/device_tracker.py +++ b/homeassistant/components/trackr/device_tracker.py @@ -11,7 +11,7 @@ from homeassistant.util import slugify _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pytrackr==0.0.5'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_USERNAME): cv.string, diff --git a/homeassistant/components/tradfri/__init__.py b/homeassistant/components/tradfri/__init__.py index e334d4d4ddc..b14bc811754 100644 --- a/homeassistant/components/tradfri/__init__.py +++ b/homeassistant/components/tradfri/__init__.py @@ -13,7 +13,7 @@ from .const import ( from . import config_flow # noqa pylint_disable=unused-import - +REQUIREMENTS = ['pytradfri[async]==6.0.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tradfri/light.py b/homeassistant/components/tradfri/light.py index b05a71567bc..07ab4806dfc 100644 --- a/homeassistant/components/tradfri/light.py +++ b/homeassistant/components/tradfri/light.py @@ -17,7 +17,7 @@ ATTR_DIMMER = 'dimmer' ATTR_HUE = 'hue' ATTR_SAT = 'saturation' ATTR_TRANSITION_TIME = 'transition_time' - +DEPENDENCIES = ['tradfri'] PLATFORM_SCHEMA = LIGHT_PLATFORM_SCHEMA IKEA = 'IKEA of Sweden' TRADFRI_LIGHT_MANAGER = 'Tradfri Light Manager' diff --git a/homeassistant/components/tradfri/sensor.py b/homeassistant/components/tradfri/sensor.py index 636d0115295..acc84a93590 100644 --- a/homeassistant/components/tradfri/sensor.py +++ b/homeassistant/components/tradfri/sensor.py @@ -9,7 +9,7 @@ from . import KEY_API, KEY_GATEWAY _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['tradfri'] SCAN_INTERVAL = timedelta(minutes=5) diff --git a/homeassistant/components/tradfri/switch.py b/homeassistant/components/tradfri/switch.py index 96c46027150..ef9a9537cff 100644 --- a/homeassistant/components/tradfri/switch.py +++ b/homeassistant/components/tradfri/switch.py @@ -9,7 +9,7 @@ from .const import CONF_GATEWAY_ID _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['tradfri'] IKEA = 'IKEA of Sweden' TRADFRI_SWITCH_MANAGER = 'Tradfri Switch Manager' diff --git a/homeassistant/components/trafikverket_weatherstation/sensor.py b/homeassistant/components/trafikverket_weatherstation/sensor.py index 205d0fe7d9b..bf8f4c803e0 100644 --- a/homeassistant/components/trafikverket_weatherstation/sensor.py +++ b/homeassistant/components/trafikverket_weatherstation/sensor.py @@ -16,7 +16,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['pytrafikverket==0.1.5.9'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/transmission/__init__.py b/homeassistant/components/transmission/__init__.py index 4c095b1256b..25e21dc3d8a 100644 --- a/homeassistant/components/transmission/__init__.py +++ b/homeassistant/components/transmission/__init__.py @@ -11,7 +11,7 @@ from homeassistant.helpers import config_validation as cv, discovery from homeassistant.helpers.dispatcher import dispatcher_send from homeassistant.helpers.event import track_time_interval - +REQUIREMENTS = ['transmissionrpc==0.11'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/transmission/sensor.py b/homeassistant/components/transmission/sensor.py index 362ea122007..dfd4c195097 100644 --- a/homeassistant/components/transmission/sensor.py +++ b/homeassistant/components/transmission/sensor.py @@ -9,7 +9,7 @@ from homeassistant.helpers.entity import Entity from . import DATA_TRANSMISSION, DATA_UPDATED, SENSOR_TYPES - +DEPENDENCIES = ['transmission'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/transmission/switch.py b/homeassistant/components/transmission/switch.py index 9c3b14cd552..854a2e727b0 100644 --- a/homeassistant/components/transmission/switch.py +++ b/homeassistant/components/transmission/switch.py @@ -8,7 +8,7 @@ from homeassistant.helpers.entity import ToggleEntity from . import DATA_TRANSMISSION, DATA_UPDATED - +DEPENDENCIES = ['transmission'] _LOGGING = logging.getLogger(__name__) diff --git a/homeassistant/components/transport_nsw/sensor.py b/homeassistant/components/transport_nsw/sensor.py index 9ba5d95ab3d..3c40bf4f709 100644 --- a/homeassistant/components/transport_nsw/sensor.py +++ b/homeassistant/components/transport_nsw/sensor.py @@ -9,7 +9,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import (CONF_NAME, CONF_API_KEY, ATTR_ATTRIBUTION) - +REQUIREMENTS = ['PyTransportNSW==0.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/travisci/sensor.py b/homeassistant/components/travisci/sensor.py index 0a69df9544d..99309f7e2b7 100644 --- a/homeassistant/components/travisci/sensor.py +++ b/homeassistant/components/travisci/sensor.py @@ -11,7 +11,7 @@ from homeassistant.const import ( CONF_MONITORED_CONDITIONS) from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['TravisPy==0.3.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/trend/binary_sensor.py b/homeassistant/components/trend/binary_sensor.py index c981bae9d29..163703373d3 100644 --- a/homeassistant/components/trend/binary_sensor.py +++ b/homeassistant/components/trend/binary_sensor.py @@ -17,7 +17,7 @@ from homeassistant.helpers.entity import generate_entity_id from homeassistant.helpers.event import async_track_state_change from homeassistant.util import utcnow - +REQUIREMENTS = ['numpy==1.16.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tts/__init__.py b/homeassistant/components/tts/__init__.py index e599a2590cc..763baa262be 100644 --- a/homeassistant/components/tts/__init__.py +++ b/homeassistant/components/tts/__init__.py @@ -24,7 +24,7 @@ from homeassistant.helpers import config_per_platform import homeassistant.helpers.config_validation as cv from homeassistant.setup import async_prepare_setup_platform - +REQUIREMENTS = ['mutagen==1.42.0'] _LOGGER = logging.getLogger(__name__) @@ -43,7 +43,7 @@ CONF_BASE_URL = 'base_url' DEFAULT_CACHE = True DEFAULT_CACHE_DIR = 'tts' DEFAULT_TIME_MEMORY = 300 - +DEPENDENCIES = ['http'] DOMAIN = 'tts' MEM_CACHE_FILENAME = 'filename' diff --git a/homeassistant/components/tuya/__init__.py b/homeassistant/components/tuya/__init__.py index 409f9011304..117424fd55e 100644 --- a/homeassistant/components/tuya/__init__.py +++ b/homeassistant/components/tuya/__init__.py @@ -12,7 +12,7 @@ from homeassistant.helpers.dispatcher import ( from homeassistant.helpers.entity import Entity from homeassistant.helpers.event import track_time_interval - +REQUIREMENTS = ['tuyapy==0.1.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/tuya/climate.py b/homeassistant/components/tuya/climate.py index 16e4d0686dc..b7a10dad862 100644 --- a/homeassistant/components/tuya/climate.py +++ b/homeassistant/components/tuya/climate.py @@ -10,7 +10,7 @@ from homeassistant.const import ( from . import DATA_TUYA, TuyaDevice - +DEPENDENCIES = ['tuya'] DEVICE_TYPE = 'climate' HA_STATE_TO_TUYA = { diff --git a/homeassistant/components/tuya/cover.py b/homeassistant/components/tuya/cover.py index 6ca29ce9610..274f4d93869 100644 --- a/homeassistant/components/tuya/cover.py +++ b/homeassistant/components/tuya/cover.py @@ -4,7 +4,7 @@ from homeassistant.components.cover import ( from . import DATA_TUYA, TuyaDevice - +DEPENDENCIES = ['tuya'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/tuya/fan.py b/homeassistant/components/tuya/fan.py index 1c5d8251787..259417869dc 100644 --- a/homeassistant/components/tuya/fan.py +++ b/homeassistant/components/tuya/fan.py @@ -5,7 +5,7 @@ from homeassistant.const import STATE_OFF from . import DATA_TUYA, TuyaDevice - +DEPENDENCIES = ['tuya'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/tuya/light.py b/homeassistant/components/tuya/light.py index f0431834a70..17f9b43dcbe 100644 --- a/homeassistant/components/tuya/light.py +++ b/homeassistant/components/tuya/light.py @@ -6,7 +6,7 @@ from homeassistant.util import color as colorutil from . import DATA_TUYA, TuyaDevice - +DEPENDENCIES = ['tuya'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/tuya/scene.py b/homeassistant/components/tuya/scene.py index 074867e6ffd..24383dca6e4 100644 --- a/homeassistant/components/tuya/scene.py +++ b/homeassistant/components/tuya/scene.py @@ -3,7 +3,7 @@ from homeassistant.components.scene import DOMAIN, Scene from . import DATA_TUYA, TuyaDevice - +DEPENDENCIES = ['tuya'] ENTITY_ID_FORMAT = DOMAIN + '.{}' diff --git a/homeassistant/components/tuya/switch.py b/homeassistant/components/tuya/switch.py index 52a51e8b968..c2e32eedc59 100644 --- a/homeassistant/components/tuya/switch.py +++ b/homeassistant/components/tuya/switch.py @@ -3,7 +3,7 @@ from homeassistant.components.switch import ENTITY_ID_FORMAT, SwitchDevice from . import DATA_TUYA, TuyaDevice - +DEPENDENCIES = ['tuya'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/twilio/__init__.py b/homeassistant/components/twilio/__init__.py index f635514a754..e7ba06a05f7 100644 --- a/homeassistant/components/twilio/__init__.py +++ b/homeassistant/components/twilio/__init__.py @@ -5,8 +5,8 @@ import homeassistant.helpers.config_validation as cv from homeassistant.const import CONF_WEBHOOK_ID from homeassistant.helpers import config_entry_flow - - +REQUIREMENTS = ['twilio==6.19.1'] +DEPENDENCIES = ['webhook'] DOMAIN = 'twilio' diff --git a/homeassistant/components/twilio_call/notify.py b/homeassistant/components/twilio_call/notify.py index 52418a64cbe..ab57d721465 100644 --- a/homeassistant/components/twilio_call/notify.py +++ b/homeassistant/components/twilio_call/notify.py @@ -12,7 +12,7 @@ from homeassistant.components.notify import (ATTR_TARGET, PLATFORM_SCHEMA, _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['twilio'] CONF_FROM_NUMBER = 'from_number' diff --git a/homeassistant/components/twilio_sms/notify.py b/homeassistant/components/twilio_sms/notify.py index 7617401854c..a04e397a568 100644 --- a/homeassistant/components/twilio_sms/notify.py +++ b/homeassistant/components/twilio_sms/notify.py @@ -10,7 +10,7 @@ from homeassistant.components.notify import (ATTR_TARGET, PLATFORM_SCHEMA, BaseNotificationService) _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ["twilio"] CONF_FROM_NUMBER = "from_number" diff --git a/homeassistant/components/twitch/sensor.py b/homeassistant/components/twitch/sensor.py index 8919bbc397f..123de752d51 100644 --- a/homeassistant/components/twitch/sensor.py +++ b/homeassistant/components/twitch/sensor.py @@ -7,7 +7,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.helpers.entity import Entity import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['python-twitch-client==0.6.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/twitter/notify.py b/homeassistant/components/twitter/notify.py index 2c6526d1bd5..54cd591f394 100644 --- a/homeassistant/components/twitter/notify.py +++ b/homeassistant/components/twitter/notify.py @@ -15,7 +15,7 @@ from homeassistant.helpers.event import async_track_point_in_time from homeassistant.components.notify import (ATTR_DATA, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['TwitterAPI==2.5.9'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/ubee/device_tracker.py b/homeassistant/components/ubee/device_tracker.py index 85e3a710600..f73f58f3a1f 100644 --- a/homeassistant/components/ubee/device_tracker.py +++ b/homeassistant/components/ubee/device_tracker.py @@ -9,7 +9,7 @@ from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_USERNAME) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyubee==0.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/uber/sensor.py b/homeassistant/components/uber/sensor.py index 4140d963f12..87d87de66ee 100644 --- a/homeassistant/components/uber/sensor.py +++ b/homeassistant/components/uber/sensor.py @@ -9,7 +9,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['uber_rides==0.6.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/unifi/__init__.py b/homeassistant/components/unifi/__init__.py index f89120830eb..7e236789a5c 100644 --- a/homeassistant/components/unifi/__init__.py +++ b/homeassistant/components/unifi/__init__.py @@ -16,7 +16,7 @@ DEFAULT_PORT = 8443 DEFAULT_SITE_ID = 'default' DEFAULT_VERIFY_SSL = False - +REQUIREMENTS = ['aiounifi==4'] async def async_setup(hass, config): diff --git a/homeassistant/components/unifi/device_tracker.py b/homeassistant/components/unifi/device_tracker.py index d4814e45a0f..49e28114b17 100644 --- a/homeassistant/components/unifi/device_tracker.py +++ b/homeassistant/components/unifi/device_tracker.py @@ -10,7 +10,7 @@ from homeassistant.const import CONF_HOST, CONF_USERNAME, CONF_PASSWORD from homeassistant.const import CONF_VERIFY_SSL, CONF_MONITORED_CONDITIONS import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['pyunifi==2.16'] _LOGGER = logging.getLogger(__name__) CONF_PORT = 'port' diff --git a/homeassistant/components/unifi/switch.py b/homeassistant/components/unifi/switch.py index 62129e5c06a..e90da2dbcd8 100644 --- a/homeassistant/components/unifi/switch.py +++ b/homeassistant/components/unifi/switch.py @@ -13,7 +13,7 @@ from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC from .const import CONF_CONTROLLER, CONF_SITE_ID, CONTROLLER_ID, DOMAIN - +DEPENDENCIES = [DOMAIN] SCAN_INTERVAL = timedelta(seconds=15) LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/unifi_direct/device_tracker.py b/homeassistant/components/unifi_direct/device_tracker.py index 56cfc0f8e26..29a3c58fab9 100644 --- a/homeassistant/components/unifi_direct/device_tracker.py +++ b/homeassistant/components/unifi_direct/device_tracker.py @@ -11,7 +11,7 @@ from homeassistant.const import ( CONF_HOST, CONF_PASSWORD, CONF_USERNAME, CONF_PORT) - +REQUIREMENTS = ['pexpect==4.6.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/upc_connect/device_tracker.py b/homeassistant/components/upc_connect/device_tracker.py index fa6c59eb35c..4a583b8349a 100644 --- a/homeassistant/components/upc_connect/device_tracker.py +++ b/homeassistant/components/upc_connect/device_tracker.py @@ -13,7 +13,7 @@ from homeassistant.const import CONF_HOST, HTTP_HEADER_X_REQUESTED_WITH from homeassistant.helpers.aiohttp_client import async_get_clientsession import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['defusedxml==0.5.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/upcloud/__init__.py b/homeassistant/components/upcloud/__init__.py index 29e52f6b41c..7981cf948bb 100644 --- a/homeassistant/components/upcloud/__init__.py +++ b/homeassistant/components/upcloud/__init__.py @@ -14,7 +14,7 @@ from homeassistant.helpers.dispatcher import ( from homeassistant.helpers.entity import Entity from homeassistant.helpers.event import track_time_interval - +REQUIREMENTS = ['upcloud-api==0.4.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/upcloud/binary_sensor.py b/homeassistant/components/upcloud/binary_sensor.py index 987870136de..a0c3c9f34c6 100644 --- a/homeassistant/components/upcloud/binary_sensor.py +++ b/homeassistant/components/upcloud/binary_sensor.py @@ -11,7 +11,7 @@ from . import CONF_SERVERS, DATA_UPCLOUD, UpCloudServerEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['upcloud'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_SERVERS): vol.All(cv.ensure_list, [cv.string]), diff --git a/homeassistant/components/upcloud/switch.py b/homeassistant/components/upcloud/switch.py index 2b2150f0166..7e84adccf55 100644 --- a/homeassistant/components/upcloud/switch.py +++ b/homeassistant/components/upcloud/switch.py @@ -11,7 +11,7 @@ from . import CONF_SERVERS, DATA_UPCLOUD, UpCloudServerEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['upcloud'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_SERVERS): vol.All(cv.ensure_list, [cv.string]), diff --git a/homeassistant/components/updater/__init__.py b/homeassistant/components/updater/__init__.py index a62a5a5f6fe..cb2646ea942 100644 --- a/homeassistant/components/updater/__init__.py +++ b/homeassistant/components/updater/__init__.py @@ -18,7 +18,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession import homeassistant.helpers.config_validation as cv import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['distro==1.4.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/upnp/__init__.py b/homeassistant/components/upnp/__init__.py index 5e77ebd9bf6..5f4abcb24c7 100644 --- a/homeassistant/components/upnp/__init__.py +++ b/homeassistant/components/upnp/__init__.py @@ -23,7 +23,7 @@ from .const import DOMAIN from .const import LOGGER as _LOGGER from .device import Device - +REQUIREMENTS = ['async-upnp-client==0.14.7'] NOTIFICATION_ID = 'upnp_notification' NOTIFICATION_TITLE = 'UPnP/IGD Setup' diff --git a/homeassistant/components/upnp/sensor.py b/homeassistant/components/upnp/sensor.py index cf5ad5ba124..86bcee879b9 100644 --- a/homeassistant/components/upnp/sensor.py +++ b/homeassistant/components/upnp/sensor.py @@ -12,7 +12,7 @@ from .const import DOMAIN as DOMAIN_UPNP, SIGNAL_REMOVE_SENSOR _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['upnp'] BYTES_RECEIVED = 'bytes_received' BYTES_SENT = 'bytes_sent' diff --git a/homeassistant/components/ups/sensor.py b/homeassistant/components/ups/sensor.py index e19fc80bda7..3ed82de41db 100644 --- a/homeassistant/components/ups/sensor.py +++ b/homeassistant/components/ups/sensor.py @@ -15,7 +15,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle, slugify from homeassistant.util.dt import now, parse_date - +REQUIREMENTS = ['upsmychoice==1.0.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/uptimerobot/binary_sensor.py b/homeassistant/components/uptimerobot/binary_sensor.py index ae0decbc88e..8e11966b680 100644 --- a/homeassistant/components/uptimerobot/binary_sensor.py +++ b/homeassistant/components/uptimerobot/binary_sensor.py @@ -8,7 +8,7 @@ from homeassistant.components.binary_sensor import ( from homeassistant.const import ATTR_ATTRIBUTION, CONF_API_KEY import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyuptimerobot==0.0.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/uscis/sensor.py b/homeassistant/components/uscis/sensor.py index d6b97d13f2c..501c6c9665c 100644 --- a/homeassistant/components/uscis/sensor.py +++ b/homeassistant/components/uscis/sensor.py @@ -13,7 +13,7 @@ from homeassistant.const import CONF_FRIENDLY_NAME _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['uscisstatus==0.1.1'] DEFAULT_NAME = "USCIS" diff --git a/homeassistant/components/usgs_earthquakes_feed/geo_location.py b/homeassistant/components/usgs_earthquakes_feed/geo_location.py index 9ef5a9c60f2..1d11b1971cc 100644 --- a/homeassistant/components/usgs_earthquakes_feed/geo_location.py +++ b/homeassistant/components/usgs_earthquakes_feed/geo_location.py @@ -16,7 +16,7 @@ from homeassistant.helpers.dispatcher import ( async_dispatcher_connect, dispatcher_send) from homeassistant.helpers.event import track_time_interval - +REQUIREMENTS = ['geojson_client==0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/usps/__init__.py b/homeassistant/components/usps/__init__.py index 4e70b4d764e..8a7d7d52255 100644 --- a/homeassistant/components/usps/__init__.py +++ b/homeassistant/components/usps/__init__.py @@ -10,7 +10,7 @@ from homeassistant.helpers import (config_validation as cv, discovery) from homeassistant.util import Throttle from homeassistant.util.dt import now - +REQUIREMENTS = ['myusps==1.3.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/usps/camera.py b/homeassistant/components/usps/camera.py index aa35a804095..5b5eaca4ce2 100644 --- a/homeassistant/components/usps/camera.py +++ b/homeassistant/components/usps/camera.py @@ -8,7 +8,7 @@ from . import DATA_USPS _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['usps'] SCAN_INTERVAL = timedelta(seconds=10) diff --git a/homeassistant/components/usps/sensor.py b/homeassistant/components/usps/sensor.py index b09d83001c5..3e5fea5c4ee 100644 --- a/homeassistant/components/usps/sensor.py +++ b/homeassistant/components/usps/sensor.py @@ -11,7 +11,7 @@ from . import DATA_USPS _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['usps'] STATUS_DELIVERED = 'delivered' diff --git a/homeassistant/components/uvc/camera.py b/homeassistant/components/uvc/camera.py index 06a584a4bcb..65251054060 100644 --- a/homeassistant/components/uvc/camera.py +++ b/homeassistant/components/uvc/camera.py @@ -10,7 +10,7 @@ from homeassistant.components.camera import Camera, PLATFORM_SCHEMA import homeassistant.helpers.config_validation as cv from homeassistant.exceptions import PlatformNotReady - +REQUIREMENTS = ['uvcclient==0.11.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/vacuum/__init__.py b/homeassistant/components/vacuum/__init__.py index d9ea63c40fd..02266986ccf 100644 --- a/homeassistant/components/vacuum/__init__.py +++ b/homeassistant/components/vacuum/__init__.py @@ -20,7 +20,7 @@ from homeassistant.helpers.icon import icon_for_battery_level _LOGGER = logging.getLogger(__name__) DOMAIN = 'vacuum' - +DEPENDENCIES = ['group'] SCAN_INTERVAL = timedelta(seconds=20) diff --git a/homeassistant/components/vasttrafik/sensor.py b/homeassistant/components/vasttrafik/sensor.py index 2728cc0e4c9..d8e9f1e7675 100644 --- a/homeassistant/components/vasttrafik/sensor.py +++ b/homeassistant/components/vasttrafik/sensor.py @@ -11,7 +11,7 @@ from homeassistant.const import CONF_NAME, ATTR_ATTRIBUTION from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['vtjp==0.1.14'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/velbus/__init__.py b/homeassistant/components/velbus/__init__.py index 8bb7fcd03a2..4e808dc21ca 100644 --- a/homeassistant/components/velbus/__init__.py +++ b/homeassistant/components/velbus/__init__.py @@ -7,7 +7,7 @@ from homeassistant.const import EVENT_HOMEASSISTANT_STOP, CONF_PORT from homeassistant.helpers.discovery import load_platform from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['python-velbus==2.0.22'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/velbus/binary_sensor.py b/homeassistant/components/velbus/binary_sensor.py index 4448669add4..cbe1350bd4f 100644 --- a/homeassistant/components/velbus/binary_sensor.py +++ b/homeassistant/components/velbus/binary_sensor.py @@ -7,7 +7,7 @@ from . import DOMAIN as VELBUS_DOMAIN, VelbusEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['velbus'] async def async_setup_platform( diff --git a/homeassistant/components/velbus/climate.py b/homeassistant/components/velbus/climate.py index dea2dd18a5f..470524bb6f3 100644 --- a/homeassistant/components/velbus/climate.py +++ b/homeassistant/components/velbus/climate.py @@ -10,7 +10,7 @@ from . import DOMAIN as VELBUS_DOMAIN, VelbusEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['velbus'] SUPPORT_FLAGS = (SUPPORT_TARGET_TEMPERATURE) diff --git a/homeassistant/components/velbus/cover.py b/homeassistant/components/velbus/cover.py index d78f62a37d5..b176ab76c4b 100644 --- a/homeassistant/components/velbus/cover.py +++ b/homeassistant/components/velbus/cover.py @@ -24,7 +24,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_COVERS): cv.schema_with_slug_keys(COVER_SCHEMA), }) - +DEPENDENCIES = ['velbus'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/velbus/sensor.py b/homeassistant/components/velbus/sensor.py index 76268a18dd4..ad78a795a30 100644 --- a/homeassistant/components/velbus/sensor.py +++ b/homeassistant/components/velbus/sensor.py @@ -5,7 +5,7 @@ from . import DOMAIN as VELBUS_DOMAIN, VelbusEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['velbus'] async def async_setup_platform( diff --git a/homeassistant/components/velbus/switch.py b/homeassistant/components/velbus/switch.py index 14b12f5f2a6..b5ef89ca480 100644 --- a/homeassistant/components/velbus/switch.py +++ b/homeassistant/components/velbus/switch.py @@ -7,7 +7,7 @@ from . import DOMAIN as VELBUS_DOMAIN, VelbusEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['velbus'] async def async_setup_platform( diff --git a/homeassistant/components/velux/__init__.py b/homeassistant/components/velux/__init__.py index 70fadc685db..a46f62dbd5f 100644 --- a/homeassistant/components/velux/__init__.py +++ b/homeassistant/components/velux/__init__.py @@ -12,7 +12,7 @@ DATA_VELUX = "data_velux" SUPPORTED_DOMAINS = ['cover', 'scene'] _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['pyvlx==0.2.10'] CONFIG_SCHEMA = vol.Schema({ DOMAIN: vol.Schema({ diff --git a/homeassistant/components/velux/cover.py b/homeassistant/components/velux/cover.py index 4bdd888989e..1893909b706 100644 --- a/homeassistant/components/velux/cover.py +++ b/homeassistant/components/velux/cover.py @@ -6,7 +6,7 @@ from homeassistant.core import callback from . import DATA_VELUX - +DEPENDENCIES = ['velux'] async def async_setup_platform( diff --git a/homeassistant/components/velux/scene.py b/homeassistant/components/velux/scene.py index 2866258f917..614d3f349a2 100644 --- a/homeassistant/components/velux/scene.py +++ b/homeassistant/components/velux/scene.py @@ -3,7 +3,7 @@ from homeassistant.components.scene import Scene from . import _LOGGER, DATA_VELUX - +DEPENDENCIES = ['velux'] async def async_setup_platform( diff --git a/homeassistant/components/venstar/climate.py b/homeassistant/components/venstar/climate.py index 5dea452c173..f3e7542af5c 100644 --- a/homeassistant/components/venstar/climate.py +++ b/homeassistant/components/venstar/climate.py @@ -17,7 +17,7 @@ from homeassistant.const import ( TEMP_FAHRENHEIT) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['venstarcolortouch==0.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/vera/__init__.py b/homeassistant/components/vera/__init__.py index fffe33c2049..3f4c66d238a 100644 --- a/homeassistant/components/vera/__init__.py +++ b/homeassistant/components/vera/__init__.py @@ -14,7 +14,7 @@ from homeassistant.const import ( EVENT_HOMEASSISTANT_STOP, CONF_LIGHTS, CONF_EXCLUDE) from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['pyvera==0.2.45'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/vera/binary_sensor.py b/homeassistant/components/vera/binary_sensor.py index 94b52023383..c81fa31938f 100644 --- a/homeassistant/components/vera/binary_sensor.py +++ b/homeassistant/components/vera/binary_sensor.py @@ -6,7 +6,7 @@ from homeassistant.components.binary_sensor import ( from . import VERA_CONTROLLER, VERA_DEVICES, VeraDevice - +DEPENDENCIES = ['vera'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/vera/climate.py b/homeassistant/components/vera/climate.py index 545f1bc5dbe..f8ff9c21b89 100644 --- a/homeassistant/components/vera/climate.py +++ b/homeassistant/components/vera/climate.py @@ -11,7 +11,7 @@ from homeassistant.util import convert from . import VERA_CONTROLLER, VERA_DEVICES, VeraDevice - +DEPENDENCIES = ['vera'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/vera/cover.py b/homeassistant/components/vera/cover.py index fd6bf5cef8d..4cf2aac3bb4 100644 --- a/homeassistant/components/vera/cover.py +++ b/homeassistant/components/vera/cover.py @@ -6,7 +6,7 @@ from homeassistant.components.cover import ( from . import VERA_CONTROLLER, VERA_DEVICES, VeraDevice - +DEPENDENCIES = ['vera'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/vera/light.py b/homeassistant/components/vera/light.py index 80af98b2614..e4e315bb52e 100644 --- a/homeassistant/components/vera/light.py +++ b/homeassistant/components/vera/light.py @@ -10,7 +10,7 @@ from . import VERA_CONTROLLER, VERA_DEVICES, VeraDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['vera'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/vera/lock.py b/homeassistant/components/vera/lock.py index e74a097b179..5ace07b87d7 100644 --- a/homeassistant/components/vera/lock.py +++ b/homeassistant/components/vera/lock.py @@ -8,7 +8,7 @@ from . import VERA_CONTROLLER, VERA_DEVICES, VeraDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['vera'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/vera/scene.py b/homeassistant/components/vera/scene.py index e1eb540caf6..5000f9bc50f 100644 --- a/homeassistant/components/vera/scene.py +++ b/homeassistant/components/vera/scene.py @@ -8,7 +8,7 @@ from . import VERA_CONTROLLER, VERA_ID_FORMAT, VERA_SCENES _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['vera'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/vera/sensor.py b/homeassistant/components/vera/sensor.py index 961b1563772..3c026046b3e 100644 --- a/homeassistant/components/vera/sensor.py +++ b/homeassistant/components/vera/sensor.py @@ -11,7 +11,7 @@ from . import VERA_CONTROLLER, VERA_DEVICES, VeraDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['vera'] SCAN_INTERVAL = timedelta(seconds=5) diff --git a/homeassistant/components/vera/switch.py b/homeassistant/components/vera/switch.py index 212919a4610..f422e49bf42 100644 --- a/homeassistant/components/vera/switch.py +++ b/homeassistant/components/vera/switch.py @@ -8,7 +8,7 @@ from . import VERA_CONTROLLER, VERA_DEVICES, VeraDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['vera'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/verisure/__init__.py b/homeassistant/components/verisure/__init__.py index 3abc91a76ab..393a4066002 100644 --- a/homeassistant/components/verisure/__init__.py +++ b/homeassistant/components/verisure/__init__.py @@ -11,7 +11,7 @@ from homeassistant.helpers import discovery from homeassistant.util import Throttle import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['vsure==1.5.2', 'jsonpath==0.75'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/version/sensor.py b/homeassistant/components/version/sensor.py index 1d4f417a008..7c8f2b1662a 100644 --- a/homeassistant/components/version/sensor.py +++ b/homeassistant/components/version/sensor.py @@ -11,7 +11,7 @@ from homeassistant.const import CONF_NAME, CONF_SOURCE from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['pyhaversion==2.2.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/vesync/switch.py b/homeassistant/components/vesync/switch.py index 14ce30dcf98..d37728624ef 100644 --- a/homeassistant/components/vesync/switch.py +++ b/homeassistant/components/vesync/switch.py @@ -6,7 +6,7 @@ from homeassistant.const import (CONF_USERNAME, CONF_PASSWORD) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyvesync_v2==0.9.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/vizio/media_player.py b/homeassistant/components/vizio/media_player.py index faf32b6dd0f..bab54c68a90 100644 --- a/homeassistant/components/vizio/media_player.py +++ b/homeassistant/components/vizio/media_player.py @@ -15,7 +15,7 @@ from homeassistant.const import ( CONF_ACCESS_TOKEN, CONF_HOST, CONF_NAME, STATE_OFF, STATE_ON) from homeassistant.helpers import config_validation as cv - +REQUIREMENTS = ['pyvizio==0.0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/vlc/media_player.py b/homeassistant/components/vlc/media_player.py index 5729671b67d..41f9b5b16d4 100644 --- a/homeassistant/components/vlc/media_player.py +++ b/homeassistant/components/vlc/media_player.py @@ -13,7 +13,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['python-vlc==1.1.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/volkszaehler/sensor.py b/homeassistant/components/volkszaehler/sensor.py index 39c704c9a71..5b808ff3c38 100644 --- a/homeassistant/components/volkszaehler/sensor.py +++ b/homeassistant/components/volkszaehler/sensor.py @@ -14,7 +14,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['volkszaehler==0.1.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/volvooncall/__init__.py b/homeassistant/components/volvooncall/__init__.py index 36b0714ec02..36e3959338e 100644 --- a/homeassistant/components/volvooncall/__init__.py +++ b/homeassistant/components/volvooncall/__init__.py @@ -21,7 +21,7 @@ DOMAIN = 'volvooncall' DATA_KEY = DOMAIN - +REQUIREMENTS = ['volvooncall==0.8.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/vultr/__init__.py b/homeassistant/components/vultr/__init__.py index 5cd6d1821ed..9f2efabd412 100644 --- a/homeassistant/components/vultr/__init__.py +++ b/homeassistant/components/vultr/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import CONF_API_KEY from homeassistant.util import Throttle import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['vultr==0.1.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/vultr/binary_sensor.py b/homeassistant/components/vultr/binary_sensor.py index ac93a81e661..87e8e93bda7 100644 --- a/homeassistant/components/vultr/binary_sensor.py +++ b/homeassistant/components/vultr/binary_sensor.py @@ -18,7 +18,7 @@ _LOGGER = logging.getLogger(__name__) DEFAULT_DEVICE_CLASS = 'power' DEFAULT_NAME = 'Vultr {}' - +DEPENDENCIES = ['vultr'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_SUBSCRIPTION): cv.string, diff --git a/homeassistant/components/vultr/sensor.py b/homeassistant/components/vultr/sensor.py index 5d067ec0acd..f7e03dddace 100644 --- a/homeassistant/components/vultr/sensor.py +++ b/homeassistant/components/vultr/sensor.py @@ -15,7 +15,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) DEFAULT_NAME = 'Vultr {} {}' - +DEPENDENCIES = ['vultr'] MONITORED_CONDITIONS = { ATTR_CURRENT_BANDWIDTH_USED: ['Current Bandwidth Used', 'GB', diff --git a/homeassistant/components/vultr/switch.py b/homeassistant/components/vultr/switch.py index 95a3877a556..502aaf9daa8 100644 --- a/homeassistant/components/vultr/switch.py +++ b/homeassistant/components/vultr/switch.py @@ -16,7 +16,7 @@ from . import ( _LOGGER = logging.getLogger(__name__) DEFAULT_NAME = 'Vultr {}' - +DEPENDENCIES = ['vultr'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_SUBSCRIPTION): cv.string, diff --git a/homeassistant/components/w800rf32/__init__.py b/homeassistant/components/w800rf32/__init__.py index 475e576956a..d2c0cf6b968 100644 --- a/homeassistant/components/w800rf32/__init__.py +++ b/homeassistant/components/w800rf32/__init__.py @@ -10,7 +10,7 @@ from homeassistant.const import (CONF_DEVICE, import homeassistant.helpers.config_validation as cv from homeassistant.helpers.dispatcher import (dispatcher_send) - +REQUIREMENTS = ['pyW800rf32==0.1'] DATA_W800RF32 = 'data_w800rf32' DOMAIN = 'w800rf32' diff --git a/homeassistant/components/w800rf32/binary_sensor.py b/homeassistant/components/w800rf32/binary_sensor.py index 0f3afa91f09..c9424834953 100644 --- a/homeassistant/components/w800rf32/binary_sensor.py +++ b/homeassistant/components/w800rf32/binary_sensor.py @@ -15,7 +15,7 @@ from . import W800RF32_DEVICE _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['w800rf32'] CONF_OFF_DELAY = 'off_delay' PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ diff --git a/homeassistant/components/wake_on_lan/__init__.py b/homeassistant/components/wake_on_lan/__init__.py index 03061c034ab..e6e12ef0afe 100644 --- a/homeassistant/components/wake_on_lan/__init__.py +++ b/homeassistant/components/wake_on_lan/__init__.py @@ -7,7 +7,7 @@ import voluptuous as vol from homeassistant.const import CONF_MAC import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['wakeonlan==1.1.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/wake_on_lan/switch.py b/homeassistant/components/wake_on_lan/switch.py index 3c1378c50dd..c81a476f0f8 100644 --- a/homeassistant/components/wake_on_lan/switch.py +++ b/homeassistant/components/wake_on_lan/switch.py @@ -10,7 +10,7 @@ from homeassistant.const import CONF_HOST, CONF_NAME import homeassistant.helpers.config_validation as cv from homeassistant.helpers.script import Script - +REQUIREMENTS = ['wakeonlan==1.1.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/waqi/sensor.py b/homeassistant/components/waqi/sensor.py index 3b212319429..f3000890de6 100644 --- a/homeassistant/components/waqi/sensor.py +++ b/homeassistant/components/waqi/sensor.py @@ -14,7 +14,7 @@ from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.config_validation import PLATFORM_SCHEMA from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['waqiasync==1.0.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/waterfurnace/__init__.py b/homeassistant/components/waterfurnace/__init__.py index d4a5a5b7b4e..38fd44cd1c7 100644 --- a/homeassistant/components/waterfurnace/__init__.py +++ b/homeassistant/components/waterfurnace/__init__.py @@ -13,7 +13,7 @@ from homeassistant.core import callback from homeassistant.helpers import config_validation as cv from homeassistant.helpers import discovery - +REQUIREMENTS = ['waterfurnace==1.1.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/watson_iot/__init__.py b/homeassistant/components/watson_iot/__init__.py index 004efd69cf9..e9a907ee6d2 100644 --- a/homeassistant/components/watson_iot/__init__.py +++ b/homeassistant/components/watson_iot/__init__.py @@ -13,7 +13,7 @@ from homeassistant.const import ( from homeassistant.helpers import state as state_helper import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['ibmiotf==0.3.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/waze_travel_time/sensor.py b/homeassistant/components/waze_travel_time/sensor.py index 4960226a95a..984a5800898 100644 --- a/homeassistant/components/waze_travel_time/sensor.py +++ b/homeassistant/components/waze_travel_time/sensor.py @@ -13,7 +13,7 @@ from homeassistant.helpers import location from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['WazeRouteCalculator==0.9'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/webhook/__init__.py b/homeassistant/components/webhook/__init__.py index 41abe324c37..59be3ab1890 100644 --- a/homeassistant/components/webhook/__init__.py +++ b/homeassistant/components/webhook/__init__.py @@ -12,7 +12,7 @@ from homeassistant.components.http.view import HomeAssistantView _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['http'] DOMAIN = 'webhook' diff --git a/homeassistant/components/webostv/media_player.py b/homeassistant/components/webostv/media_player.py index 20feb522c91..35c3c456680 100644 --- a/homeassistant/components/webostv/media_player.py +++ b/homeassistant/components/webostv/media_player.py @@ -21,7 +21,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv from homeassistant.helpers.script import Script - +REQUIREMENTS = ['pylgtv==0.1.9', 'websockets==6.0'] _CONFIGURING = {} # type: Dict[str, str] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/webostv/notify.py b/homeassistant/components/webostv/notify.py index 88306795e51..5887586df65 100644 --- a/homeassistant/components/webostv/notify.py +++ b/homeassistant/components/webostv/notify.py @@ -8,7 +8,7 @@ from homeassistant.components.notify import ( ATTR_DATA, BaseNotificationService, PLATFORM_SCHEMA) from homeassistant.const import (CONF_FILENAME, CONF_HOST, CONF_ICON) - +REQUIREMENTS = ['pylgtv==0.1.9'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/wemo/__init__.py b/homeassistant/components/wemo/__init__.py index 4c1f12be90e..709b3ec8672 100644 --- a/homeassistant/components/wemo/__init__.py +++ b/homeassistant/components/wemo/__init__.py @@ -11,7 +11,7 @@ from homeassistant.helpers import discovery from homeassistant.const import ( EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP) - +REQUIREMENTS = ['pywemo==0.4.34'] DOMAIN = 'wemo' diff --git a/homeassistant/components/wemo/binary_sensor.py b/homeassistant/components/wemo/binary_sensor.py index abf9eee568d..d6c1ad721b9 100644 --- a/homeassistant/components/wemo/binary_sensor.py +++ b/homeassistant/components/wemo/binary_sensor.py @@ -8,7 +8,7 @@ import requests from homeassistant.components.binary_sensor import BinarySensorDevice from homeassistant.exceptions import PlatformNotReady - +DEPENDENCIES = ['wemo'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/wemo/fan.py b/homeassistant/components/wemo/fan.py index eca7d707634..29a493bf5bc 100644 --- a/homeassistant/components/wemo/fan.py +++ b/homeassistant/components/wemo/fan.py @@ -14,7 +14,7 @@ from homeassistant.components.fan import ( from homeassistant.exceptions import PlatformNotReady from homeassistant.const import ATTR_ENTITY_ID - +DEPENDENCIES = ['wemo'] SCAN_INTERVAL = timedelta(seconds=10) DATA_KEY = 'fan.wemo' diff --git a/homeassistant/components/wemo/light.py b/homeassistant/components/wemo/light.py index 96492b72fe6..e0f729fb165 100644 --- a/homeassistant/components/wemo/light.py +++ b/homeassistant/components/wemo/light.py @@ -13,7 +13,7 @@ from homeassistant.components.light import ( from homeassistant.exceptions import PlatformNotReady import homeassistant.util.color as color_util - +DEPENDENCIES = ['wemo'] MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10) MIN_TIME_BETWEEN_FORCED_SCANS = timedelta(milliseconds=100) diff --git a/homeassistant/components/wemo/switch.py b/homeassistant/components/wemo/switch.py index 82a3d14964b..0a583e49e96 100644 --- a/homeassistant/components/wemo/switch.py +++ b/homeassistant/components/wemo/switch.py @@ -12,7 +12,7 @@ from homeassistant.util import convert from homeassistant.const import ( STATE_OFF, STATE_ON, STATE_STANDBY, STATE_UNKNOWN) - +DEPENDENCIES = ['wemo'] SCAN_INTERVAL = timedelta(seconds=10) _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/whois/sensor.py b/homeassistant/components/whois/sensor.py index cdeac403a6b..e36bdea08c3 100644 --- a/homeassistant/components/whois/sensor.py +++ b/homeassistant/components/whois/sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import CONF_NAME import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['python-whois==0.7.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/wink/__init__.py b/homeassistant/components/wink/__init__.py index 5fba703c677..2b03d7711ac 100644 --- a/homeassistant/components/wink/__init__.py +++ b/homeassistant/components/wink/__init__.py @@ -20,7 +20,7 @@ from homeassistant.helpers.entity_component import EntityComponent from homeassistant.helpers.event import track_time_interval from homeassistant.util.json import load_json, save_json - +REQUIREMENTS = ['python-wink==1.10.3', 'pubnubsub-handler==1.0.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/wink/alarm_control_panel.py b/homeassistant/components/wink/alarm_control_panel.py index 741a3d5d9a3..73ca9a3cac4 100644 --- a/homeassistant/components/wink/alarm_control_panel.py +++ b/homeassistant/components/wink/alarm_control_panel.py @@ -9,7 +9,7 @@ from . import DOMAIN, WinkDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['wink'] STATE_ALARM_PRIVACY = 'Private' diff --git a/homeassistant/components/wink/binary_sensor.py b/homeassistant/components/wink/binary_sensor.py index 9fb0cc1ae85..f3757d7bf39 100644 --- a/homeassistant/components/wink/binary_sensor.py +++ b/homeassistant/components/wink/binary_sensor.py @@ -7,7 +7,7 @@ from . import DOMAIN, WinkDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['wink'] # These are the available sensors mapped to binary_sensor class SENSOR_TYPES = { diff --git a/homeassistant/components/wink/climate.py b/homeassistant/components/wink/climate.py index b755f20585e..f5e75c1fb8d 100644 --- a/homeassistant/components/wink/climate.py +++ b/homeassistant/components/wink/climate.py @@ -26,7 +26,7 @@ ATTR_TOTAL_CONSUMPTION = 'total_consumption' ATTR_HEAT_ON = 'heat_on' ATTR_COOL_ON = 'cool_on' - +DEPENDENCIES = ['wink'] SPEED_LOW = 'low' SPEED_MEDIUM = 'medium' diff --git a/homeassistant/components/wink/cover.py b/homeassistant/components/wink/cover.py index e34b4f7aec9..f4c4841c2a2 100644 --- a/homeassistant/components/wink/cover.py +++ b/homeassistant/components/wink/cover.py @@ -3,7 +3,7 @@ from homeassistant.components.cover import ATTR_POSITION, CoverDevice from . import DOMAIN, WinkDevice - +DEPENDENCIES = ['wink'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/wink/fan.py b/homeassistant/components/wink/fan.py index 48a45defb84..52a27eb3c3d 100644 --- a/homeassistant/components/wink/fan.py +++ b/homeassistant/components/wink/fan.py @@ -9,7 +9,7 @@ from . import DOMAIN, WinkDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['wink'] SPEED_AUTO = 'auto' SPEED_LOWEST = 'lowest' diff --git a/homeassistant/components/wink/light.py b/homeassistant/components/wink/light.py index b4803548165..95747bcc1b2 100644 --- a/homeassistant/components/wink/light.py +++ b/homeassistant/components/wink/light.py @@ -8,7 +8,7 @@ from homeassistant.util.color import ( from . import DOMAIN, WinkDevice - +DEPENDENCIES = ['wink'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/wink/lock.py b/homeassistant/components/wink/lock.py index 9f3c996ca04..8e6fb9b2805 100644 --- a/homeassistant/components/wink/lock.py +++ b/homeassistant/components/wink/lock.py @@ -10,7 +10,7 @@ import homeassistant.helpers.config_validation as cv from . import DOMAIN, WinkDevice - +DEPENDENCIES = ['wink'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/wink/scene.py b/homeassistant/components/wink/scene.py index 01c95c2bba2..e77402c4d45 100644 --- a/homeassistant/components/wink/scene.py +++ b/homeassistant/components/wink/scene.py @@ -7,7 +7,7 @@ from . import DOMAIN, WinkDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['wink'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/wink/sensor.py b/homeassistant/components/wink/sensor.py index 52f6793e47e..3dfd704d564 100644 --- a/homeassistant/components/wink/sensor.py +++ b/homeassistant/components/wink/sensor.py @@ -7,7 +7,7 @@ from . import DOMAIN, WinkDevice _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['wink'] SENSOR_TYPES = ['temperature', 'humidity', 'balance', 'proximity'] diff --git a/homeassistant/components/wink/switch.py b/homeassistant/components/wink/switch.py index 2cd3a5eb211..6ee777dd1fc 100644 --- a/homeassistant/components/wink/switch.py +++ b/homeassistant/components/wink/switch.py @@ -5,7 +5,7 @@ from homeassistant.helpers.entity import ToggleEntity from . import DOMAIN, WinkDevice - +DEPENDENCIES = ['wink'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/wirelesstag/__init__.py b/homeassistant/components/wirelesstag/__init__.py index 09ca9feb67e..28c8cb4d515 100644 --- a/homeassistant/components/wirelesstag/__init__.py +++ b/homeassistant/components/wirelesstag/__init__.py @@ -11,7 +11,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.helpers.dispatcher import ( dispatcher_send) - +REQUIREMENTS = ['wirelesstagpy==0.4.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/wirelesstag/binary_sensor.py b/homeassistant/components/wirelesstag/binary_sensor.py index 935951fd0e1..aefa5ed34a9 100644 --- a/homeassistant/components/wirelesstag/binary_sensor.py +++ b/homeassistant/components/wirelesstag/binary_sensor.py @@ -14,7 +14,7 @@ from . import ( DOMAIN as WIRELESSTAG_DOMAIN, SIGNAL_BINARY_EVENT_UPDATE, WirelessTagBaseSensor) - +DEPENDENCIES = ['wirelesstag'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/wirelesstag/sensor.py b/homeassistant/components/wirelesstag/sensor.py index 4ba44912699..ca26e07b985 100644 --- a/homeassistant/components/wirelesstag/sensor.py +++ b/homeassistant/components/wirelesstag/sensor.py @@ -12,7 +12,7 @@ from homeassistant.helpers.dispatcher import async_dispatcher_connect from . import ( DOMAIN as WIRELESSTAG_DOMAIN, SIGNAL_TAG_UPDATE, WirelessTagBaseSensor) - +DEPENDENCIES = ['wirelesstag'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/wirelesstag/switch.py b/homeassistant/components/wirelesstag/switch.py index da49f6b1f4a..4a2b64acda1 100644 --- a/homeassistant/components/wirelesstag/switch.py +++ b/homeassistant/components/wirelesstag/switch.py @@ -9,7 +9,7 @@ import homeassistant.helpers.config_validation as cv from . import DOMAIN as WIRELESSTAG_DOMAIN, WirelessTagBaseSensor - +DEPENDENCIES = ['wirelesstag'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/workday/binary_sensor.py b/homeassistant/components/workday/binary_sensor.py index 2bdc066abcf..b505e075018 100644 --- a/homeassistant/components/workday/binary_sensor.py +++ b/homeassistant/components/workday/binary_sensor.py @@ -9,7 +9,7 @@ from homeassistant.const import CONF_NAME, WEEKDAYS from homeassistant.components.binary_sensor import BinarySensorDevice import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['holidays==0.9.10'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/wunderlist/__init__.py b/homeassistant/components/wunderlist/__init__.py index 23273f0df82..d67cf089b5e 100644 --- a/homeassistant/components/wunderlist/__init__.py +++ b/homeassistant/components/wunderlist/__init__.py @@ -7,7 +7,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.const import ( CONF_NAME, CONF_ACCESS_TOKEN) - +REQUIREMENTS = ['wunderpy2==0.1.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xbox_live/sensor.py b/homeassistant/components/xbox_live/sensor.py index 43d638b0343..9f8a02686ac 100644 --- a/homeassistant/components/xbox_live/sensor.py +++ b/homeassistant/components/xbox_live/sensor.py @@ -8,7 +8,7 @@ from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import (CONF_API_KEY, STATE_UNKNOWN) from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['xboxapi==0.1.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xeoma/camera.py b/homeassistant/components/xeoma/camera.py index 65339a8201d..dd0ee432707 100644 --- a/homeassistant/components/xeoma/camera.py +++ b/homeassistant/components/xeoma/camera.py @@ -8,7 +8,7 @@ from homeassistant.const import ( CONF_HOST, CONF_NAME, CONF_PASSWORD, CONF_USERNAME) from homeassistant.helpers import config_validation as cv - +REQUIREMENTS = ['pyxeoma==1.4.1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xfinity/device_tracker.py b/homeassistant/components/xfinity/device_tracker.py index 9d3c5556fed..04702355de7 100644 --- a/homeassistant/components/xfinity/device_tracker.py +++ b/homeassistant/components/xfinity/device_tracker.py @@ -9,7 +9,7 @@ from homeassistant.components.device_tracker import ( DOMAIN, PLATFORM_SCHEMA, DeviceScanner) from homeassistant.const import CONF_HOST - +REQUIREMENTS = ['xfinity-gateway==0.0.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xiaomi/camera.py b/homeassistant/components/xiaomi/camera.py index c4f200bfe4a..98e54d2bc73 100644 --- a/homeassistant/components/xiaomi/camera.py +++ b/homeassistant/components/xiaomi/camera.py @@ -11,7 +11,7 @@ from homeassistant.const import (CONF_HOST, CONF_NAME, CONF_PATH, from homeassistant.helpers import config_validation as cv from homeassistant.helpers.aiohttp_client import async_aiohttp_proxy_stream - +DEPENDENCIES = ['ffmpeg'] _LOGGER = logging.getLogger(__name__) DEFAULT_BRAND = 'Xiaomi Home Camera' diff --git a/homeassistant/components/xiaomi_aqara/__init__.py b/homeassistant/components/xiaomi_aqara/__init__.py index ea281f28ee0..9b113170f8a 100644 --- a/homeassistant/components/xiaomi_aqara/__init__.py +++ b/homeassistant/components/xiaomi_aqara/__init__.py @@ -16,7 +16,7 @@ from homeassistant.helpers.entity import Entity from homeassistant.helpers.event import async_track_point_in_utc_time from homeassistant.util.dt import utcnow - +REQUIREMENTS = ['PyXiaomiGateway==0.12.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xiaomi_miio/device_tracker.py b/homeassistant/components/xiaomi_miio/device_tracker.py index d7bdbe5562e..e7ea9fbbb40 100644 --- a/homeassistant/components/xiaomi_miio/device_tracker.py +++ b/homeassistant/components/xiaomi_miio/device_tracker.py @@ -8,7 +8,7 @@ from homeassistant.components.device_tracker import ( from homeassistant.const import CONF_HOST, CONF_TOKEN import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['python-miio==0.4.5', 'construct==2.9.45'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xiaomi_miio/fan.py b/homeassistant/components/xiaomi_miio/fan.py index 8adf901ac84..51d4780160d 100644 --- a/homeassistant/components/xiaomi_miio/fan.py +++ b/homeassistant/components/xiaomi_miio/fan.py @@ -13,7 +13,7 @@ from homeassistant.const import (CONF_NAME, CONF_HOST, CONF_TOKEN, from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['python-miio==0.4.5', 'construct==2.9.45'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xiaomi_miio/light.py b/homeassistant/components/xiaomi_miio/light.py index 3ffc5e4072d..ec07a557342 100644 --- a/homeassistant/components/xiaomi_miio/light.py +++ b/homeassistant/components/xiaomi_miio/light.py @@ -17,7 +17,7 @@ from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv from homeassistant.util import color, dt - +REQUIREMENTS = ['python-miio==0.4.5', 'construct==2.9.45'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xiaomi_miio/remote.py b/homeassistant/components/xiaomi_miio/remote.py index f13f8d5124a..450279c1825 100644 --- a/homeassistant/components/xiaomi_miio/remote.py +++ b/homeassistant/components/xiaomi_miio/remote.py @@ -17,7 +17,7 @@ from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv from homeassistant.util.dt import utcnow - +REQUIREMENTS = ['python-miio==0.4.5', 'construct==2.9.45'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xiaomi_miio/sensor.py b/homeassistant/components/xiaomi_miio/sensor.py index acc47acb98d..41d3ce65b13 100644 --- a/homeassistant/components/xiaomi_miio/sensor.py +++ b/homeassistant/components/xiaomi_miio/sensor.py @@ -9,7 +9,7 @@ from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['python-miio==0.4.5', 'construct==2.9.45'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xiaomi_miio/switch.py b/homeassistant/components/xiaomi_miio/switch.py index 64cb8eef5e3..d1acce02e47 100644 --- a/homeassistant/components/xiaomi_miio/switch.py +++ b/homeassistant/components/xiaomi_miio/switch.py @@ -12,7 +12,7 @@ from homeassistant.const import ( from homeassistant.exceptions import PlatformNotReady import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['python-miio==0.4.5', 'construct==2.9.45'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xiaomi_miio/vacuum.py b/homeassistant/components/xiaomi_miio/vacuum.py index bef335a8ee6..2673a5b897c 100644 --- a/homeassistant/components/xiaomi_miio/vacuum.py +++ b/homeassistant/components/xiaomi_miio/vacuum.py @@ -16,7 +16,7 @@ from homeassistant.const import ( ATTR_ENTITY_ID, CONF_HOST, CONF_NAME, CONF_TOKEN, STATE_OFF, STATE_ON) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['python-miio==0.4.5', 'construct==2.9.45'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xiaomi_tv/media_player.py b/homeassistant/components/xiaomi_tv/media_player.py index a66743c1a09..2c8a2e1ea83 100644 --- a/homeassistant/components/xiaomi_tv/media_player.py +++ b/homeassistant/components/xiaomi_tv/media_player.py @@ -10,7 +10,7 @@ from homeassistant.components.media_player.const import ( from homeassistant.const import CONF_HOST, CONF_NAME, STATE_OFF, STATE_ON import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pymitv==1.4.3'] DEFAULT_NAME = "Xiaomi TV" diff --git a/homeassistant/components/xmpp/notify.py b/homeassistant/components/xmpp/notify.py index 1abeb7bbda8..d8036f5ee1e 100644 --- a/homeassistant/components/xmpp/notify.py +++ b/homeassistant/components/xmpp/notify.py @@ -17,7 +17,7 @@ import homeassistant.helpers.template as template_helper from homeassistant.components.notify import ( ATTR_TITLE, ATTR_TITLE_DEFAULT, PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['slixmpp==1.4.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xs1/__init__.py b/homeassistant/components/xs1/__init__.py index 80cfbf5c2cd..f67eb8fd15a 100644 --- a/homeassistant/components/xs1/__init__.py +++ b/homeassistant/components/xs1/__init__.py @@ -11,7 +11,7 @@ from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity - +REQUIREMENTS = ['xs1-api-client==2.3.5'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xs1/climate.py b/homeassistant/components/xs1/climate.py index 6385934bbbd..080b87c1346 100644 --- a/homeassistant/components/xs1/climate.py +++ b/homeassistant/components/xs1/climate.py @@ -8,7 +8,7 @@ from homeassistant.const import ATTR_TEMPERATURE from . import ACTUATORS, DOMAIN as COMPONENT_DOMAIN, SENSORS, XS1DeviceEntity - +DEPENDENCIES = ['xs1'] _LOGGER = logging.getLogger(__name__) MIN_TEMP = 8 diff --git a/homeassistant/components/xs1/sensor.py b/homeassistant/components/xs1/sensor.py index cd5ae5b64c8..f5fdcf1fb34 100644 --- a/homeassistant/components/xs1/sensor.py +++ b/homeassistant/components/xs1/sensor.py @@ -5,7 +5,7 @@ from homeassistant.helpers.entity import Entity from . import ACTUATORS, DOMAIN as COMPONENT_DOMAIN, SENSORS, XS1DeviceEntity - +DEPENDENCIES = ['xs1'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/xs1/switch.py b/homeassistant/components/xs1/switch.py index 0fc9dccf223..d8b344fc716 100644 --- a/homeassistant/components/xs1/switch.py +++ b/homeassistant/components/xs1/switch.py @@ -7,7 +7,7 @@ from . import ACTUATORS, DOMAIN as COMPONENT_DOMAIN, XS1DeviceEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['xs1'] async def async_setup_platform( diff --git a/homeassistant/components/yale_smart_alarm/alarm_control_panel.py b/homeassistant/components/yale_smart_alarm/alarm_control_panel.py index 046eec0c789..1a8e03a6363 100755 --- a/homeassistant/components/yale_smart_alarm/alarm_control_panel.py +++ b/homeassistant/components/yale_smart_alarm/alarm_control_panel.py @@ -10,7 +10,7 @@ from homeassistant.const import ( STATE_ALARM_ARMED_AWAY, STATE_ALARM_ARMED_HOME, STATE_ALARM_DISARMED) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['yalesmartalarmclient==0.1.6'] CONF_AREA_ID = 'area_id' diff --git a/homeassistant/components/yamaha/media_player.py b/homeassistant/components/yamaha/media_player.py index 87646e61f2e..53c6b466f6e 100644 --- a/homeassistant/components/yamaha/media_player.py +++ b/homeassistant/components/yamaha/media_player.py @@ -18,7 +18,7 @@ from homeassistant.const import ( STATE_PLAYING) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['rxv==0.6.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/yamaha_musiccast/media_player.py b/homeassistant/components/yamaha_musiccast/media_player.py index 9755a3817cd..94002a4cc55 100644 --- a/homeassistant/components/yamaha_musiccast/media_player.py +++ b/homeassistant/components/yamaha_musiccast/media_player.py @@ -15,7 +15,7 @@ from homeassistant.const import ( import homeassistant.helpers.config_validation as cv import homeassistant.util.dt as dt_util - +REQUIREMENTS = ['pymusiccast==0.1.6'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/yeelight/__init__.py b/homeassistant/components/yeelight/__init__.py index 70b42356a23..9b9778fd5d2 100644 --- a/homeassistant/components/yeelight/__init__.py +++ b/homeassistant/components/yeelight/__init__.py @@ -16,7 +16,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.dispatcher import dispatcher_send from homeassistant.helpers.event import track_time_interval - +REQUIREMENTS = ['yeelight==0.4.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/yeelight/binary_sensor.py b/homeassistant/components/yeelight/binary_sensor.py index 249271ecd0b..0b44966f15c 100644 --- a/homeassistant/components/yeelight/binary_sensor.py +++ b/homeassistant/components/yeelight/binary_sensor.py @@ -6,7 +6,7 @@ from homeassistant.core import callback from homeassistant.helpers.dispatcher import async_dispatcher_connect from . import DATA_YEELIGHT, DATA_UPDATED - +DEPENDENCIES = ['yeelight'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/yeelight/light.py b/homeassistant/components/yeelight/light.py index 81747ea6452..8aa5c3d7300 100644 --- a/homeassistant/components/yeelight/light.py +++ b/homeassistant/components/yeelight/light.py @@ -22,7 +22,7 @@ from . import ( YEELIGHT_FLOW_TRANSITION_SCHEMA, ACTION_RECOVER, CONF_FLOW_PARAMS, ATTR_ACTION, ATTR_COUNT) - +DEPENDENCIES = ['yeelight'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/yeelightsunflower/light.py b/homeassistant/components/yeelightsunflower/light.py index 54a3b55c773..9252143526b 100644 --- a/homeassistant/components/yeelightsunflower/light.py +++ b/homeassistant/components/yeelightsunflower/light.py @@ -10,7 +10,7 @@ from homeassistant.components.light import ( from homeassistant.const import CONF_HOST import homeassistant.util.color as color_util - +REQUIREMENTS = ['yeelightsunflower==0.0.10'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/yessssms/notify.py b/homeassistant/components/yessssms/notify.py index 6958869d83a..c229c361e28 100644 --- a/homeassistant/components/yessssms/notify.py +++ b/homeassistant/components/yessssms/notify.py @@ -9,7 +9,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.components.notify import (PLATFORM_SCHEMA, BaseNotificationService) - +REQUIREMENTS = ['YesssSMS==0.2.3'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/yi/camera.py b/homeassistant/components/yi/camera.py index 3ebb5ec8cd9..7ed36b97868 100644 --- a/homeassistant/components/yi/camera.py +++ b/homeassistant/components/yi/camera.py @@ -12,8 +12,8 @@ from homeassistant.helpers import config_validation as cv from homeassistant.helpers.aiohttp_client import async_aiohttp_proxy_stream from homeassistant.exceptions import PlatformNotReady - - +REQUIREMENTS = ['aioftp==0.12.0'] +DEPENDENCIES = ['ffmpeg'] _LOGGER = logging.getLogger(__name__) DEFAULT_BRAND = 'YI Home Camera' diff --git a/homeassistant/components/yr/sensor.py b/homeassistant/components/yr/sensor.py index 29f1d949576..4c898a7c9fe 100644 --- a/homeassistant/components/yr/sensor.py +++ b/homeassistant/components/yr/sensor.py @@ -20,7 +20,7 @@ from homeassistant.helpers.event import (async_track_utc_time_change, async_call_later) from homeassistant.util import dt as dt_util - +REQUIREMENTS = ['xmltodict==0.11.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/yweather/sensor.py b/homeassistant/components/yweather/sensor.py index 9a1bd37e09d..129532ceb57 100644 --- a/homeassistant/components/yweather/sensor.py +++ b/homeassistant/components/yweather/sensor.py @@ -12,7 +12,7 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['yahooweather==0.10'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/yweather/weather.py b/homeassistant/components/yweather/weather.py index 18b5620c053..e4eb34a039a 100644 --- a/homeassistant/components/yweather/weather.py +++ b/homeassistant/components/yweather/weather.py @@ -10,7 +10,7 @@ from homeassistant.components.weather import ( from homeassistant.const import CONF_NAME, STATE_UNKNOWN, TEMP_CELSIUS import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ["yahooweather==0.10"] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/zabbix/__init__.py b/homeassistant/components/zabbix/__init__.py index 3f204bfe4bd..f33c60b1c39 100644 --- a/homeassistant/components/zabbix/__init__.py +++ b/homeassistant/components/zabbix/__init__.py @@ -8,7 +8,7 @@ from homeassistant.const import ( CONF_PATH, CONF_HOST, CONF_SSL, CONF_PASSWORD, CONF_USERNAME) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['pyzabbix==0.7.4'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/zabbix/sensor.py b/homeassistant/components/zabbix/sensor.py index ab2e8f5746d..ae2e70ede2c 100644 --- a/homeassistant/components/zabbix/sensor.py +++ b/homeassistant/components/zabbix/sensor.py @@ -11,7 +11,7 @@ from homeassistant.helpers.entity import Entity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['zabbix'] _CONF_TRIGGERS = 'triggers' _CONF_HOSTIDS = 'hostids' diff --git a/homeassistant/components/zengge/light.py b/homeassistant/components/zengge/light.py index c2f835073c4..8bbd56a483e 100644 --- a/homeassistant/components/zengge/light.py +++ b/homeassistant/components/zengge/light.py @@ -10,7 +10,7 @@ from homeassistant.components.light import ( import homeassistant.helpers.config_validation as cv import homeassistant.util.color as color_util - +REQUIREMENTS = ['zengge==0.2'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/zeroconf/__init__.py b/homeassistant/components/zeroconf/__init__.py index 1af9b4dd1ac..844246528a6 100644 --- a/homeassistant/components/zeroconf/__init__.py +++ b/homeassistant/components/zeroconf/__init__.py @@ -7,11 +7,11 @@ import voluptuous as vol from homeassistant import util from homeassistant.const import (EVENT_HOMEASSISTANT_STOP, __version__) - +REQUIREMENTS = ['zeroconf==0.21.3'] _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['api'] DOMAIN = 'zeroconf' diff --git a/homeassistant/components/zestimate/sensor.py b/homeassistant/components/zestimate/sensor.py index 6e480e4e815..f69e3b16ebe 100644 --- a/homeassistant/components/zestimate/sensor.py +++ b/homeassistant/components/zestimate/sensor.py @@ -12,7 +12,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.entity import Entity from homeassistant.util import Throttle - +REQUIREMENTS = ['xmltodict==0.11.0'] _LOGGER = logging.getLogger(__name__) _RESOURCE = 'http://www.zillow.com/webservice/GetZestimate.htm' diff --git a/homeassistant/components/zha/binary_sensor.py b/homeassistant/components/zha/binary_sensor.py index 36260fff9a3..b4254eb83e7 100644 --- a/homeassistant/components/zha/binary_sensor.py +++ b/homeassistant/components/zha/binary_sensor.py @@ -14,7 +14,7 @@ from .entity import ZhaEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['zha'] # Zigbee Cluster Library Zone Type to Home Assistant device class CLASS_MAPPING = { diff --git a/homeassistant/components/zha/fan.py b/homeassistant/components/zha/fan.py index 9fcda0f68f7..b80834af1d7 100644 --- a/homeassistant/components/zha/fan.py +++ b/homeassistant/components/zha/fan.py @@ -12,7 +12,7 @@ from .core.const import ( ) from .entity import ZhaEntity - +DEPENDENCIES = ['zha'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/zha/light.py b/homeassistant/components/zha/light.py index 8cbf8ea84a5..12bc12c5f6e 100644 --- a/homeassistant/components/zha/light.py +++ b/homeassistant/components/zha/light.py @@ -17,7 +17,7 @@ from .entity import ZhaEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['zha'] DEFAULT_DURATION = 5 diff --git a/homeassistant/components/zha/sensor.py b/homeassistant/components/zha/sensor.py index 383ea220fa7..13932d7dd7a 100644 --- a/homeassistant/components/zha/sensor.py +++ b/homeassistant/components/zha/sensor.py @@ -16,7 +16,7 @@ from .entity import ZhaEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['zha'] # Formatter functions diff --git a/homeassistant/components/zha/switch.py b/homeassistant/components/zha/switch.py index e0e3399a3f6..34c9ab2514d 100644 --- a/homeassistant/components/zha/switch.py +++ b/homeassistant/components/zha/switch.py @@ -13,7 +13,7 @@ from .entity import ZhaEntity _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['zha'] async def async_setup_platform(hass, config, async_add_entities, diff --git a/homeassistant/components/zhong_hong/climate.py b/homeassistant/components/zhong_hong/climate.py index 17f513d3f42..7fd2b971009 100644 --- a/homeassistant/components/zhong_hong/climate.py +++ b/homeassistant/components/zhong_hong/climate.py @@ -14,7 +14,7 @@ import homeassistant.helpers.config_validation as cv from homeassistant.helpers.dispatcher import (async_dispatcher_connect, async_dispatcher_send) - +REQUIREMENTS = ['zhong_hong_hvac==1.0.9'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/zigbee/__init__.py b/homeassistant/components/zigbee/__init__.py index 9196b2bd99a..0e2d3587829 100644 --- a/homeassistant/components/zigbee/__init__.py +++ b/homeassistant/components/zigbee/__init__.py @@ -11,7 +11,7 @@ from homeassistant.helpers import config_validation as cv from homeassistant.helpers.dispatcher import ( async_dispatcher_connect, dispatcher_send) - +REQUIREMENTS = ['xbee-helper==0.0.7'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/zigbee/binary_sensor.py b/homeassistant/components/zigbee/binary_sensor.py index 458c1200679..ccf4e70df34 100644 --- a/homeassistant/components/zigbee/binary_sensor.py +++ b/homeassistant/components/zigbee/binary_sensor.py @@ -8,7 +8,7 @@ from . import PLATFORM_SCHEMA, ZigBeeDigitalIn, ZigBeeDigitalInConfig CONF_ON_STATE = 'on_state' DEFAULT_ON_STATE = 'high' - +DEPENDENCIES = ['zigbee'] STATES = ['high', 'low'] diff --git a/homeassistant/components/zigbee/light.py b/homeassistant/components/zigbee/light.py index 2b1052ee81c..b9be0d89323 100644 --- a/homeassistant/components/zigbee/light.py +++ b/homeassistant/components/zigbee/light.py @@ -8,7 +8,7 @@ from . import PLATFORM_SCHEMA, ZigBeeDigitalOut, ZigBeeDigitalOutConfig CONF_ON_STATE = 'on_state' DEFAULT_ON_STATE = 'high' - +DEPENDENCIES = ['zigbee'] STATES = ['high', 'low'] diff --git a/homeassistant/components/zigbee/sensor.py b/homeassistant/components/zigbee/sensor.py index dc9a72b740d..48301ac9728 100644 --- a/homeassistant/components/zigbee/sensor.py +++ b/homeassistant/components/zigbee/sensor.py @@ -16,7 +16,7 @@ CONF_TYPE = 'type' CONF_MAX_VOLTS = 'max_volts' DEFAULT_VOLTS = 1.2 - +DEPENDENCIES = ['zigbee'] TYPES = ['analog', 'temperature'] diff --git a/homeassistant/components/zigbee/switch.py b/homeassistant/components/zigbee/switch.py index 2f89f2155c4..ddfd47a047e 100644 --- a/homeassistant/components/zigbee/switch.py +++ b/homeassistant/components/zigbee/switch.py @@ -5,12 +5,12 @@ from homeassistant.components.switch import SwitchDevice from . import PLATFORM_SCHEMA, ZigBeeDigitalOut, ZigBeeDigitalOutConfig - +DEPENDENCIES = ['zigbee'] CONF_ON_STATE = 'on_state' DEFAULT_ON_STATE = 'high' - +DEPENDENCIES = ['zigbee'] STATES = ['high', 'low'] diff --git a/homeassistant/components/ziggo_mediabox_xl/media_player.py b/homeassistant/components/ziggo_mediabox_xl/media_player.py index 9872d0d8a44..574d08e97a4 100644 --- a/homeassistant/components/ziggo_mediabox_xl/media_player.py +++ b/homeassistant/components/ziggo_mediabox_xl/media_player.py @@ -14,7 +14,7 @@ from homeassistant.const import ( CONF_HOST, CONF_NAME, STATE_OFF, STATE_PAUSED, STATE_PLAYING) import homeassistant.helpers.config_validation as cv - +REQUIREMENTS = ['ziggo-mediabox-xl==1.1.0'] _LOGGER = logging.getLogger(__name__) diff --git a/homeassistant/components/zoneminder/__init__.py b/homeassistant/components/zoneminder/__init__.py index b6ac6602a20..a4d90d523aa 100644 --- a/homeassistant/components/zoneminder/__init__.py +++ b/homeassistant/components/zoneminder/__init__.py @@ -11,7 +11,7 @@ from homeassistant.helpers.discovery import async_load_platform _LOGGER = logging.getLogger(__name__) - +REQUIREMENTS = ['zm-py==0.3.3'] CONF_PATH_ZMS = 'path_zms' diff --git a/homeassistant/components/zoneminder/binary_sensor.py b/homeassistant/components/zoneminder/binary_sensor.py index 1ec8acc9222..ce59d4573be 100644 --- a/homeassistant/components/zoneminder/binary_sensor.py +++ b/homeassistant/components/zoneminder/binary_sensor.py @@ -3,7 +3,7 @@ from homeassistant.components.binary_sensor import BinarySensorDevice from . import DOMAIN as ZONEMINDER_DOMAIN - +DEPENDENCIES = ['zoneminder'] async def async_setup_platform( diff --git a/homeassistant/components/zoneminder/camera.py b/homeassistant/components/zoneminder/camera.py index a20bf4edac9..fe3333fa3ed 100644 --- a/homeassistant/components/zoneminder/camera.py +++ b/homeassistant/components/zoneminder/camera.py @@ -9,7 +9,7 @@ from . import DOMAIN as ZONEMINDER_DOMAIN _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['zoneminder'] def setup_platform(hass, config, add_entities, discovery_info=None): diff --git a/homeassistant/components/zoneminder/sensor.py b/homeassistant/components/zoneminder/sensor.py index abc02c55a29..e205d921422 100644 --- a/homeassistant/components/zoneminder/sensor.py +++ b/homeassistant/components/zoneminder/sensor.py @@ -12,7 +12,7 @@ from . import DOMAIN as ZONEMINDER_DOMAIN _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['zoneminder'] CONF_INCLUDE_ARCHIVED = "include_archived" diff --git a/homeassistant/components/zoneminder/switch.py b/homeassistant/components/zoneminder/switch.py index 5e7a72f8ecc..78e72c5fd4a 100644 --- a/homeassistant/components/zoneminder/switch.py +++ b/homeassistant/components/zoneminder/switch.py @@ -11,7 +11,7 @@ from . import DOMAIN as ZONEMINDER_DOMAIN _LOGGER = logging.getLogger(__name__) - +DEPENDENCIES = ['zoneminder'] PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ vol.Required(CONF_COMMAND_ON): cv.string, diff --git a/homeassistant/components/zwave/__init__.py b/homeassistant/components/zwave/__init__.py index a94f0f02be3..6028e5547c6 100644 --- a/homeassistant/components/zwave/__init__.py +++ b/homeassistant/components/zwave/__init__.py @@ -37,7 +37,7 @@ from .discovery_schemas import DISCOVERY_SCHEMAS from .util import (check_node_schema, check_value_schema, node_name, check_has_unique_id, is_node_parsed) - +REQUIREMENTS = ['pydispatcher==2.0.5', 'homeassistant-pyozw==0.1.4'] _LOGGER = logging.getLogger(__name__)