From 01f738c1519a277c7e5e494fa6a244fbf3d310b7 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sat, 22 Nov 2014 14:39:40 -0800 Subject: [PATCH] Move to Pypi version of Phue again --- .gitmodules | 3 --- README.md | 2 -- homeassistant/components/light/hue.py | 4 +--- homeassistant/external/phue | 1 - requirements.txt | 2 +- 5 files changed, 2 insertions(+), 10 deletions(-) delete mode 160000 homeassistant/external/phue diff --git a/.gitmodules b/.gitmodules index 12316f30e72c63..8ea8376a6a4e75 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,6 +4,3 @@ [submodule "homeassistant/external/pywemo"] path = homeassistant/external/pywemo url = https://github.com/balloob/pywemo.git -[submodule "homeassistant/external/phue"] - path = homeassistant/external/phue - url = https://github.com/studioimaginaire/phue.git diff --git a/README.md b/README.md index b4f1e8dc7fd381..67ecbdcf27b5bf 100644 --- a/README.md +++ b/README.md @@ -58,8 +58,6 @@ After you got the demo mode running it is time to enable some real components an ### Philips Hue To get Philips Hue working you will have to connect Home Assistant to the Hue bridge. -*Note*: Home Assistant depends on a feature of Phue that is available on GitHub but not on Pypi. Home Assistant will include Phue as a git submodule till this issue is resolved. Before using Philips Hue you will have to install the Phue library so it can create a config file. Do so by running from the Home Assistant directory: `pip3 install -e homeassistant/external/phue`. - Run the following command from your config dir and follow the instructions: ```bash diff --git a/homeassistant/components/light/hue.py b/homeassistant/components/light/hue.py index c7419b931f47b0..8deb4111e4f1b8 100644 --- a/homeassistant/components/light/hue.py +++ b/homeassistant/components/light/hue.py @@ -17,9 +17,7 @@ def get_lights(hass, config): """ Gets the Hue lights. """ logger = logging.getLogger(__name__) try: - # Pylint does not play nice if not every folders has an __init__.py - # pylint: disable=no-name-in-module, import-error - import homeassistant.external.phue.phue as phue + import phue except ImportError: logger.exception("Error while importing dependency phue.") diff --git a/homeassistant/external/phue b/homeassistant/external/phue deleted file mode 160000 index c96d8d5dbe08ad..00000000000000 --- a/homeassistant/external/phue +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c96d8d5dbe08adfe3919734c1c8403cd7ec4873e diff --git a/requirements.txt b/requirements.txt index 2083943ea10288..c4885c361f5dd4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ requests>=2.0 pyephem>=3.7 # lights.hue -# phue>=0.7 +phue>=0.8 # chromecast pychromecast>=0.5