Last active
August 19, 2017 20:44
-
-
Save colinodell/9585444eb991783791dbe7ca612bec1f to your computer and use it in GitHub Desktop.
openzwave "dev" branch support for HA 0.50.2+
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Dockerfile b/Dockerfile | |
index f0d5acc..fa6e914 100644 | |
--- a/Dockerfile | |
+++ b/Dockerfile | |
@@ -31,6 +31,12 @@ COPY requirements_all.txt requirements_all.txt | |
RUN pip3 install --no-cache-dir -r requirements_all.txt && \ | |
pip3 install --no-cache-dir mysqlclient psycopg2 uvloop cchardet | |
+# Install python-openzwave | |
+RUN pip3 install --upgrade cython==0.24.1 && \ | |
+ pip3 install --no-cache-dir python_openzwave==0.4.0.31 --install-option="--flavor=ozwdev" && \ | |
+ mkdir -p /usr/local/share/python-openzwave && \ | |
+ ln -s /usr/local/lib/python3.6/site-packages/python_openzwave/ozw_config /usr/local/share/python-openzwave/config | |
+ | |
# Copy source | |
COPY . . | |
diff --git a/homeassistant/components/zwave/__init__.py b/homeassistant/components/zwave/__init__.py | |
index 8539662..620e947 100755 | |
--- a/homeassistant/components/zwave/__init__.py | |
+++ b/homeassistant/components/zwave/__init__.py | |
@@ -35,7 +35,7 @@ from . import workaround | |
from .discovery_schemas import DISCOVERY_SCHEMAS | |
from .util import check_node_schema, check_value_schema, node_name | |
-REQUIREMENTS = ['pydispatcher==2.0.5', 'python_openzwave==0.4.0.31'] | |
+REQUIREMENTS = ['pydispatcher==2.0.5'] | |
_LOGGER = logging.getLogger(__name__) | |
diff --git a/requirements_all.txt b/requirements_all.txt | |
index 07bb684..b430438 100644 | |
--- a/requirements_all.txt | |
+++ b/requirements_all.txt | |
@@ -777,9 +777,6 @@ python-vlc==1.1.2 | |
# homeassistant.components.wink | |
python-wink==1.5.1 | |
-# homeassistant.components.zwave | |
-python_openzwave==0.4.0.31 | |
- | |
# homeassistant.components.alarm_control_panel.egardia | |
pythonegardia==1.0.17 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment