Skip to content

Commit

Permalink
Add missing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed Aug 9, 2015
1 parent 7461bf4 commit 60ade75
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions homeassistant/components/device_tracker/nmap_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
# interval in minutes to exclude devices from a scan while they are home
CONF_HOME_INTERVAL = "home_interval"

REQUIREMENTS = ['python-libnmap>=0.6.2']


def get_scanner(hass, config):
""" Validates config and returns a Nmap scanner. """
Expand Down
2 changes: 2 additions & 0 deletions homeassistant/components/light/tellstick.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from homeassistant.const import ATTR_FRIENDLY_NAME
import tellcore.constants as tellcore_constants

REQUIREMENTS = ['tellcore-py>=1.0.4']


def setup_platform(hass, config, add_devices_callback, discovery_info=None):
""" Find and return tellstick lights. """
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/light/wink.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
from homeassistant.components.wink import WinkToggleDevice
from homeassistant.const import CONF_ACCESS_TOKEN

REQUIREMENTS = ['https://github.com/balloob/python-wink/archive/master.zip'
'#pywink>=0.1']


def setup_platform(hass, config, add_devices_callback, discovery_info=None):
""" Find and return Wink lights. """
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/modbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
DOMAIN = "modbus"

DEPENDENCIES = []
REQUIREMENTS = ['pymodbus>=1.2.0']

# Type of network
MEDIUM = "type"
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/sensor/modbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
STATE_ON, STATE_OFF)

_LOGGER = logging.getLogger(__name__)
DEPENDENCIES = ['modbus']


def setup_platform(hass, config, add_devices, discovery_info=None):
Expand Down
2 changes: 2 additions & 0 deletions homeassistant/components/sensor/tellstick.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@

DatatypeDescription = namedtuple("DatatypeDescription", ['name', 'unit'])

REQUIREMENTS = ['tellcore-py>=1.0.4']


# pylint: disable=unused-argument
def setup_platform(hass, config, add_devices, discovery_info=None):
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/sensor/wink.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
from homeassistant.helpers.entity import Entity
from homeassistant.const import CONF_ACCESS_TOKEN, STATE_OPEN, STATE_CLOSED

REQUIREMENTS = ['https://github.com/balloob/python-wink/archive/master.zip'
'#pywink>=0.1']


def setup_platform(hass, config, add_devices, discovery_info=None):
""" Sets up the Wink platform. """
Expand Down
1 change: 1 addition & 0 deletions homeassistant/components/switch/modbus.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from homeassistant.helpers.entity import ToggleEntity

_LOGGER = logging.getLogger(__name__)
DEPENDENCIES = ['modbus']


def setup_platform(hass, config, add_devices, discovery_info=None):
Expand Down
2 changes: 2 additions & 0 deletions homeassistant/components/switch/tellstick.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

SINGAL_REPETITIONS = 1

REQUIREMENTS = ['tellcore-py>=1.0.4']


# pylint: disable=unused-argument
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
Expand Down
2 changes: 2 additions & 0 deletions homeassistant/components/switch/wemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

from homeassistant.components.switch import SwitchDevice

REQUIREMENTS = ['pywemo>=0.1']


# pylint: disable=unused-argument
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/switch/wink.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
from homeassistant.components.wink import WinkToggleDevice
from homeassistant.const import CONF_ACCESS_TOKEN

REQUIREMENTS = ['https://github.com/balloob/python-wink/archive/master.zip'
'#pywink>=0.1']


def setup_platform(hass, config, add_devices, discovery_info=None):
""" Sets up the Wink platform. """
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,7 @@ RPi.GPIO >=0.5.11

# PAHO MQTT Binding (protocol.mqtt)
paho-mqtt>=1.1

# PyModbus (modbus)
pymodbus>=1.2.0

0 comments on commit 60ade75

Please sign in to comment.