Skip to content

Instantly share code, notes, and snippets.

@colinodell colinodell/changes.diff
Last active Aug 19, 2017

Embed
What would you like to do?
openzwave "dev" branch support for HA 0.50.2+
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
You can’t perform that action at this time.