- Added https://github.com/rkabadi/pyedimax to requirements
- Modified edimax.py to import pyedimax from python3 default packages
pull/229/head
Rohit Kabadi 2015-07-29 00:24:42 -07:00
parent 613c0122c0
commit f6811e858a
4 changed files with 5 additions and 8 deletions

3
.gitmodules vendored
View File

@ -22,6 +22,3 @@
[submodule "homeassistant/external/pymysensors"] [submodule "homeassistant/external/pymysensors"]
path = homeassistant/external/pymysensors path = homeassistant/external/pymysensors
url = https://github.com/theolind/pymysensors url = https://github.com/theolind/pymysensors
[submodule "homeassistant/external/pyedimax"]
path = homeassistant/external/pyedimax
url = https://github.com/rkabadi/pyedimax

View File

@ -15,12 +15,10 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
""" Find and return Edimax Smart Plugs. """ """ Find and return Edimax Smart Plugs. """
try: try:
# pylint: disable=no-name-in-module, import-error # pylint: disable=no-name-in-module, import-error
from homeassistant.external.pyedimax.smartplug import SmartPlug from pyedimax.smartplug import SmartPlug
except ImportError: except ImportError:
logging.getLogger(__name__).exception(( logging.getLogger(__name__).exception((
"Failed to import pyedimax. " "Failed to import pyedimax. "))
"Did you maybe not run `git submodule init` "
"and `git submodule update`?"))
return return

@ -1 +0,0 @@
Subproject commit 674ada04c42da5c1103205293a078be73f661fd6

View File

@ -79,3 +79,6 @@ PyMata==2.07a
# Mysensors serial gateway # Mysensors serial gateway
pyserial>=2.7 pyserial>=2.7
# PyEdimax
git+https://github.com/rkabadi/pyedimax.git