mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
commit
ad99bd6a41
9
.gitmodules
vendored
9
.gitmodules
vendored
@ -1,12 +1,3 @@
|
|||||||
[submodule "homeassistant/external/noop"]
|
|
||||||
path = homeassistant/external/noop
|
|
||||||
url = https://github.com/balloob/noop.git
|
|
||||||
[submodule "homeassistant/external/vera"]
|
|
||||||
path = homeassistant/external/vera
|
|
||||||
url = https://github.com/jamespcole/home-assistant-vera-api.git
|
|
||||||
[submodule "homeassistant/external/nzbclients"]
|
|
||||||
path = homeassistant/external/nzbclients
|
|
||||||
url = https://github.com/jamespcole/home-assistant-nzb-clients.git
|
|
||||||
[submodule "homeassistant/components/frontend/www_static/home-assistant-polymer"]
|
[submodule "homeassistant/components/frontend/www_static/home-assistant-polymer"]
|
||||||
path = homeassistant/components/frontend/www_static/home-assistant-polymer
|
path = homeassistant/components/frontend/www_static/home-assistant-polymer
|
||||||
url = https://github.com/balloob/home-assistant-polymer.git
|
url = https://github.com/balloob/home-assistant-polymer.git
|
||||||
|
@ -51,8 +51,10 @@ it should be set to "true" if you want this device excluded.
|
|||||||
import logging
|
import logging
|
||||||
from requests.exceptions import RequestException
|
from requests.exceptions import RequestException
|
||||||
from homeassistant.components.switch.vera import VeraSwitch
|
from homeassistant.components.switch.vera import VeraSwitch
|
||||||
# pylint: disable=no-name-in-module, import-error
|
|
||||||
import homeassistant.external.vera.vera as veraApi
|
REQUIREMENTS = ['https://github.com/balloob/home-assistant-vera-api/archive/'
|
||||||
|
'a8f823066ead6c7da6fb5e7abaf16fef62e63364.zip'
|
||||||
|
'#python-vera==0.1']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -60,6 +62,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||||
""" Find and return Vera lights. """
|
""" Find and return Vera lights. """
|
||||||
|
import pyvera as veraApi
|
||||||
|
|
||||||
base_url = config.get('vera_controller_url')
|
base_url = config.get('vera_controller_url')
|
||||||
if not base_url:
|
if not base_url:
|
||||||
|
@ -33,8 +33,8 @@ from homeassistant.const import (EVENT_HOMEASSISTANT_START,
|
|||||||
DOMAIN = "modbus"
|
DOMAIN = "modbus"
|
||||||
|
|
||||||
DEPENDENCIES = []
|
DEPENDENCIES = []
|
||||||
REQUIREMENTS = ['https://github.com/bashwork/pymodbus/archive/' +
|
REQUIREMENTS = ['https://github.com/bashwork/pymodbus/archive/'
|
||||||
'd7fc4f1cc975631e0a9011390e8017f64b612661.zip']
|
'd7fc4f1cc975631e0a9011390e8017f64b612661.zip#pymodbus==1.2.0']
|
||||||
|
|
||||||
# Type of network
|
# Type of network
|
||||||
MEDIUM = "type"
|
MEDIUM = "type"
|
||||||
|
@ -44,8 +44,10 @@ from homeassistant.const import TEMP_FAHRENHEIT
|
|||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
# update this requirement to upstream as soon as it supports python3
|
# update this requirement to upstream as soon as it supports python3
|
||||||
REQUIREMENTS = ['http://github.com/mala-zaba/Adafruit_Python_DHT/archive/' +
|
REQUIREMENTS = ['http://github.com/mala-zaba/Adafruit_Python_DHT/archive/'
|
||||||
'4101340de8d2457dd194bca1e8d11cbfc237e919.zip']
|
'4101340de8d2457dd194bca1e8d11cbfc237e919.zip'
|
||||||
|
'#Adafruit_DHT==1.1.0']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
SENSOR_TYPES = {
|
SENSOR_TYPES = {
|
||||||
'temperature': ['Temperature', ''],
|
'temperature': ['Temperature', ''],
|
||||||
|
@ -35,8 +35,9 @@ ATTR_NODE_ID = "node_id"
|
|||||||
ATTR_CHILD_ID = "child_id"
|
ATTR_CHILD_ID = "child_id"
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
REQUIREMENTS = ['https://github.com/theolind/pymysensors/archive/' +
|
REQUIREMENTS = ['https://github.com/theolind/pymysensors/archive/'
|
||||||
'35b87d880147a34107da0d40cb815d75e6cb4af7.zip']
|
'35b87d880147a34107da0d40cb815d75e6cb4af7.zip'
|
||||||
|
'#pymysensors==0.2']
|
||||||
|
|
||||||
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
|
@ -26,7 +26,7 @@ from homeassistant.const import (TEMP_CELCIUS)
|
|||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
|
|
||||||
REQUIREMENTS = ['https://github.com/Danielhiversen/pyRFXtrx/archive/' +
|
REQUIREMENTS = ['https://github.com/Danielhiversen/pyRFXtrx/archive/' +
|
||||||
'ec7a1aaddf8270db6e5da1c13d58c1547effd7cf.zip']
|
'ec7a1aaddf8270db6e5da1c13d58c1547effd7cf.zip#RFXtrx==0.15']
|
||||||
|
|
||||||
DATA_TYPES = OrderedDict([
|
DATA_TYPES = OrderedDict([
|
||||||
('Temperature', TEMP_CELCIUS),
|
('Temperature', TEMP_CELCIUS),
|
||||||
|
@ -47,12 +47,13 @@ from homeassistant.util import Throttle
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
# pylint: disable=no-name-in-module, import-error
|
|
||||||
from homeassistant.external.nzbclients.sabnzbd import SabnzbdApi
|
|
||||||
from homeassistant.external.nzbclients.sabnzbd import SabnzbdApiException
|
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
REQUIREMENTS = ['https://github.com/jamespcole/home-assistant-nzb-clients/'
|
||||||
|
'archive/616cad59154092599278661af17e2a9f2cf5e2a9.zip'
|
||||||
|
'#python-sabnzbd==0.1']
|
||||||
|
|
||||||
SENSOR_TYPES = {
|
SENSOR_TYPES = {
|
||||||
'current_status': ['Status', ''],
|
'current_status': ['Status', ''],
|
||||||
'speed': ['Speed', 'MB/s'],
|
'speed': ['Speed', 'MB/s'],
|
||||||
@ -70,6 +71,8 @@ _THROTTLED_REFRESH = None
|
|||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
""" Sets up the SABnzbd sensors. """
|
""" Sets up the SABnzbd sensors. """
|
||||||
|
from pysabnzbd import SabnzbdApi, SabnzbdApiException
|
||||||
|
|
||||||
api_key = config.get("api_key")
|
api_key = config.get("api_key")
|
||||||
base_url = config.get("base_url")
|
base_url = config.get("base_url")
|
||||||
name = config.get("name", "SABnzbd")
|
name = config.get("name", "SABnzbd")
|
||||||
@ -130,6 +133,7 @@ class SabnzbdSensor(Entity):
|
|||||||
def refresh_sabnzbd_data(self):
|
def refresh_sabnzbd_data(self):
|
||||||
""" Calls the throttled SABnzbd refresh method. """
|
""" Calls the throttled SABnzbd refresh method. """
|
||||||
if _THROTTLED_REFRESH is not None:
|
if _THROTTLED_REFRESH is not None:
|
||||||
|
from pysabnzbd import SabnzbdApiException
|
||||||
try:
|
try:
|
||||||
_THROTTLED_REFRESH()
|
_THROTTLED_REFRESH()
|
||||||
except SabnzbdApiException:
|
except SabnzbdApiException:
|
||||||
|
@ -17,8 +17,9 @@ from homeassistant.const import CONF_NAME, DEVICE_DEFAULT_NAME
|
|||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
REQUIREMENTS = ['https://github.com/rkabadi/temper-python/archive/' +
|
REQUIREMENTS = ['https://github.com/rkabadi/temper-python/archive/'
|
||||||
'3dbdaf2d87b8db9a3cd6e5585fc704537dd2d09b.zip']
|
'3dbdaf2d87b8db9a3cd6e5585fc704537dd2d09b.zip'
|
||||||
|
'#temperusb==1.2.3']
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
|
@ -54,8 +54,10 @@ from homeassistant.helpers.entity import Entity
|
|||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_BATTERY_LEVEL, ATTR_TRIPPED, ATTR_ARMED, ATTR_LAST_TRIP_TIME,
|
ATTR_BATTERY_LEVEL, ATTR_TRIPPED, ATTR_ARMED, ATTR_LAST_TRIP_TIME,
|
||||||
TEMP_CELCIUS, TEMP_FAHRENHEIT)
|
TEMP_CELCIUS, TEMP_FAHRENHEIT)
|
||||||
# pylint: disable=no-name-in-module, import-error
|
|
||||||
import homeassistant.external.vera.vera as veraApi
|
REQUIREMENTS = ['https://github.com/balloob/home-assistant-vera-api/archive/'
|
||||||
|
'a8f823066ead6c7da6fb5e7abaf16fef62e63364.zip'
|
||||||
|
'#python-vera==0.1']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -63,6 +65,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
def get_devices(hass, config):
|
def get_devices(hass, config):
|
||||||
""" Find and return Vera Sensors. """
|
""" Find and return Vera Sensors. """
|
||||||
|
import pyvera as veraApi
|
||||||
|
|
||||||
base_url = config.get('vera_controller_url')
|
base_url = config.get('vera_controller_url')
|
||||||
if not base_url:
|
if not base_url:
|
||||||
|
@ -44,8 +44,8 @@ from homeassistant.const import CONF_HOST, CONF_USERNAME, CONF_PASSWORD,\
|
|||||||
DEFAULT_USERNAME = 'admin'
|
DEFAULT_USERNAME = 'admin'
|
||||||
DEFAULT_PASSWORD = '1234'
|
DEFAULT_PASSWORD = '1234'
|
||||||
DEVICE_DEFAULT_NAME = 'Edimax Smart Plug'
|
DEVICE_DEFAULT_NAME = 'Edimax Smart Plug'
|
||||||
REQUIREMENTS = ['https://github.com/rkabadi/pyedimax/archive/' +
|
REQUIREMENTS = ['https://github.com/rkabadi/pyedimax/archive/'
|
||||||
'365301ce3ff26129a7910c501ead09ea625f3700.zip']
|
'365301ce3ff26129a7910c501ead09ea625f3700.zip#pyedimax==0.1']
|
||||||
|
|
||||||
# setup logger
|
# setup logger
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
@ -52,8 +52,10 @@ import homeassistant.util.dt as dt_util
|
|||||||
from homeassistant.helpers.entity import ToggleEntity
|
from homeassistant.helpers.entity import ToggleEntity
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_BATTERY_LEVEL, ATTR_TRIPPED, ATTR_ARMED, ATTR_LAST_TRIP_TIME)
|
ATTR_BATTERY_LEVEL, ATTR_TRIPPED, ATTR_ARMED, ATTR_LAST_TRIP_TIME)
|
||||||
# pylint: disable=no-name-in-module, import-error
|
|
||||||
import homeassistant.external.vera.vera as veraApi
|
REQUIREMENTS = ['https://github.com/balloob/home-assistant-vera-api/archive/'
|
||||||
|
'a8f823066ead6c7da6fb5e7abaf16fef62e63364.zip'
|
||||||
|
'#python-vera==0.1']
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -61,6 +63,7 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
def get_devices(hass, config):
|
def get_devices(hass, config):
|
||||||
""" Find and return Vera switches. """
|
""" Find and return Vera switches. """
|
||||||
|
import pyvera as veraApi
|
||||||
|
|
||||||
base_url = config.get('vera_controller_url')
|
base_url = config.get('vera_controller_url')
|
||||||
if not base_url:
|
if not base_url:
|
||||||
|
@ -62,9 +62,9 @@ DISCOVER_SWITCHES = 'verisure.switches'
|
|||||||
|
|
||||||
DEPENDENCIES = []
|
DEPENDENCIES = []
|
||||||
REQUIREMENTS = [
|
REQUIREMENTS = [
|
||||||
'https://github.com/persandstrom/python-verisure/archive/' +
|
'https://github.com/persandstrom/python-verisure/archive/'
|
||||||
'9873c4527f01b1ba1f72ae60f7f35854390d59be.zip'
|
'9873c4527f01b1ba1f72ae60f7f35854390d59be.zip#python-verisure==0.2.6'
|
||||||
]
|
]
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -16,8 +16,9 @@ from homeassistant.const import (
|
|||||||
|
|
||||||
DOMAIN = "wink"
|
DOMAIN = "wink"
|
||||||
DEPENDENCIES = []
|
DEPENDENCIES = []
|
||||||
REQUIREMENTS = ['https://github.com/balloob/python-wink/archive/' +
|
REQUIREMENTS = ['https://github.com/balloob/python-wink/archive/'
|
||||||
'c2b700e8ca866159566ecf5e644d9c297f69f257.zip']
|
'c2b700e8ca866159566ecf5e644d9c297f69f257.zip'
|
||||||
|
'#python-wink==0.1']
|
||||||
|
|
||||||
DISCOVER_LIGHTS = "wink.lights"
|
DISCOVER_LIGHTS = "wink.lights"
|
||||||
DISCOVER_SWITCHES = "wink.switches"
|
DISCOVER_SWITCHES = "wink.switches"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
""" Constants used by Home Assistant components. """
|
""" Constants used by Home Assistant components. """
|
||||||
|
|
||||||
__version__ = "0.7.2-pre"
|
__version__ = "0.7.2rc0"
|
||||||
|
|
||||||
# Can be used to specify a catch all when registering state or event listeners.
|
# Can be used to specify a catch all when registering state or event listeners.
|
||||||
MATCH_ALL = '*'
|
MATCH_ALL = '*'
|
||||||
|
1
homeassistant/external/noop
vendored
1
homeassistant/external/noop
vendored
@ -1 +0,0 @@
|
|||||||
Subproject commit 4eaeb3367f9ada05dae3319cf24ab1da5de1aa89
|
|
1
homeassistant/external/nzbclients
vendored
1
homeassistant/external/nzbclients
vendored
@ -1 +0,0 @@
|
|||||||
Subproject commit f01997498fe190d6ac2a2c375a739024843bd44d
|
|
1
homeassistant/external/vera
vendored
1
homeassistant/external/vera
vendored
@ -1 +0,0 @@
|
|||||||
Subproject commit 30c59781d63322db2160ff00a4b99f16ead40b85
|
|
@ -5,6 +5,7 @@ import pkg_resources
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
import threading
|
import threading
|
||||||
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
INSTALL_LOCK = threading.Lock()
|
INSTALL_LOCK = threading.Lock()
|
||||||
@ -36,7 +37,11 @@ def check_package_exists(package, target=None):
|
|||||||
"""Check if a package exists.
|
"""Check if a package exists.
|
||||||
Returns True when the requirement is met.
|
Returns True when the requirement is met.
|
||||||
Returns False when the package is not installed or doesn't meet req."""
|
Returns False when the package is not installed or doesn't meet req."""
|
||||||
req = pkg_resources.Requirement.parse(package)
|
try:
|
||||||
|
req = pkg_resources.Requirement.parse(package)
|
||||||
|
except ValueError:
|
||||||
|
# This is a zip file
|
||||||
|
req = pkg_resources.Requirement.parse(urlparse(package).fragment)
|
||||||
|
|
||||||
if target:
|
if target:
|
||||||
work_set = pkg_resources.WorkingSet([target])
|
work_set = pkg_resources.WorkingSet([target])
|
||||||
|
@ -77,10 +77,10 @@ python-forecastio==1.3.3
|
|||||||
PyMata==2.07a
|
PyMata==2.07a
|
||||||
|
|
||||||
# Rfxtrx sensor (sensor.rfxtrx)
|
# Rfxtrx sensor (sensor.rfxtrx)
|
||||||
https://github.com/Danielhiversen/pyRFXtrx/archive/ec7a1aaddf8270db6e5da1c13d58c1547effd7cf.zip
|
https://github.com/Danielhiversen/pyRFXtrx/archive/ec7a1aaddf8270db6e5da1c13d58c1547effd7cf.zip#RFXtrx==0.15
|
||||||
|
|
||||||
# Mysensors
|
# Mysensors
|
||||||
https://github.com/theolind/pymysensors/archive/35b87d880147a34107da0d40cb815d75e6cb4af7.zip
|
https://github.com/theolind/pymysensors/archive/35b87d880147a34107da0d40cb815d75e6cb4af7.zip#pymysensors==0.2
|
||||||
|
|
||||||
# Netgear (device_tracker.netgear)
|
# Netgear (device_tracker.netgear)
|
||||||
pynetgear==0.3
|
pynetgear==0.3
|
||||||
@ -92,33 +92,41 @@ netdisco==0.3
|
|||||||
pywemo==0.3
|
pywemo==0.3
|
||||||
|
|
||||||
# Wink (*.wink)
|
# Wink (*.wink)
|
||||||
https://github.com/balloob/python-wink/archive/c2b700e8ca866159566ecf5e644d9c297f69f257.zip
|
https://github.com/balloob/python-wink/archive/c2b700e8ca866159566ecf5e644d9c297f69f257.zip#python-wink==0.1
|
||||||
|
|
||||||
# Slack notifier (notify.slack)
|
# Slack notifier (notify.slack)
|
||||||
slacker==0.6.8
|
slacker==0.6.8
|
||||||
|
|
||||||
# Temper sensors (sensor.temper)
|
# Temper sensors (sensor.temper)
|
||||||
https://github.com/rkabadi/temper-python/archive/3dbdaf2d87b8db9a3cd6e5585fc704537dd2d09b.zip
|
https://github.com/rkabadi/temper-python/archive/3dbdaf2d87b8db9a3cd6e5585fc704537dd2d09b.zip#temperusb==1.2.3
|
||||||
|
|
||||||
# PyEdimax
|
# PyEdimax
|
||||||
https://github.com/rkabadi/pyedimax/archive/365301ce3ff26129a7910c501ead09ea625f3700.zip
|
https://github.com/rkabadi/pyedimax/archive/365301ce3ff26129a7910c501ead09ea625f3700.zip#pyedimax==0.1
|
||||||
|
|
||||||
# RPI-GPIO platform (*.rpi_gpio)
|
# RPI-GPIO platform (*.rpi_gpio)
|
||||||
# Uncomment for Raspberry Pi
|
# Uncomment for Raspberry Pi
|
||||||
# RPi.GPIO ==0.5.11
|
# RPi.GPIO==0.5.11
|
||||||
|
|
||||||
# Adafruit temperature/humidity sensor
|
# Adafruit temperature/humidity sensor
|
||||||
# uncomment on a Raspberry Pi / Beaglebone
|
# uncomment on a Raspberry Pi / Beaglebone
|
||||||
# http://github.com/mala-zaba/Adafruit_Python_DHT/archive/4101340de8d2457dd194bca1e8d11cbfc237e919.zip
|
# http://github.com/mala-zaba/Adafruit_Python_DHT/archive/4101340de8d2457dd194bca1e8d11cbfc237e919.zip#Adafruit_DHT==1.1.0
|
||||||
|
|
||||||
# PAHO MQTT Binding (mqtt)
|
# PAHO MQTT Binding (mqtt)
|
||||||
paho-mqtt==1.1
|
paho-mqtt==1.1
|
||||||
|
|
||||||
# PyModbus (modbus)
|
# PyModbus (modbus)
|
||||||
https://github.com/bashwork/pymodbus/archive/d7fc4f1cc975631e0a9011390e8017f64b612661.zip
|
https://github.com/bashwork/pymodbus/archive/d7fc4f1cc975631e0a9011390e8017f64b612661.zip#pymodbus==1.2.0
|
||||||
|
|
||||||
# Verisure (verisure)
|
# Verisure (verisure)
|
||||||
https://github.com/persandstrom/python-verisure/archive/9873c4527f01b1ba1f72ae60f7f35854390d59be.zip
|
https://github.com/persandstrom/python-verisure/archive/9873c4527f01b1ba1f72ae60f7f35854390d59be.zip#python-verisure==0.2.6
|
||||||
|
|
||||||
# Python tools for interacting with IFTTT Maker Channel (ifttt)
|
# Python tools for interacting with IFTTT Maker Channel (ifttt)
|
||||||
pyfttt==0.3
|
pyfttt==0.3
|
||||||
|
|
||||||
|
# sensor.sabnzbd
|
||||||
|
https://github.com/balloob/home-assistant-nzb-clients/archive/616cad59154092599278661af17e2a9f2cf5e2a9.zip#python-sabnzbd==0.1
|
||||||
|
|
||||||
|
# switch.vera
|
||||||
|
# sensor.vera
|
||||||
|
# light.vera
|
||||||
|
https://github.com/balloob/home-assistant-vera-api/archive/a8f823066ead6c7da6fb5e7abaf16fef62e63364.zip#python-vera==0.1
|
||||||
|
12
setup.py
12
setup.py
@ -1,15 +1,11 @@
|
|||||||
import os
|
import os
|
||||||
import re
|
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
from homeassistant.const import __version__
|
||||||
|
|
||||||
PACKAGE_NAME = 'homeassistant'
|
PACKAGE_NAME = 'homeassistant'
|
||||||
HERE = os.path.abspath(os.path.dirname(__file__))
|
HERE = os.path.abspath(os.path.dirname(__file__))
|
||||||
with open(os.path.join(HERE, PACKAGE_NAME, 'const.py'),
|
DOWNLOAD_URL = ('https://github.com/balloob/home-assistant/archive/'
|
||||||
encoding='utf-8') as fp:
|
'{}.zip'.format(__version__))
|
||||||
VERSION = re.search(
|
|
||||||
"__version__ = ['\"]([^']+)['\"]\n", fp.read()).group(1)
|
|
||||||
DOWNLOAD_URL = \
|
|
||||||
'https://github.com/balloob/home-assistant/archive/{}.zip'.format(VERSION)
|
|
||||||
|
|
||||||
PACKAGES = find_packages(exclude=['tests', 'tests.*']) + \
|
PACKAGES = find_packages(exclude=['tests', 'tests.*']) + \
|
||||||
['homeassistant.external', 'homeassistant.external.noop',
|
['homeassistant.external', 'homeassistant.external.noop',
|
||||||
@ -29,7 +25,7 @@ REQUIRES = [
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name=PACKAGE_NAME,
|
name=PACKAGE_NAME,
|
||||||
version=VERSION,
|
version=__version__,
|
||||||
license='MIT License',
|
license='MIT License',
|
||||||
url='https://home-assistant.io/',
|
url='https://home-assistant.io/',
|
||||||
download_url=DOWNLOAD_URL,
|
download_url=DOWNLOAD_URL,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user