- Added https://github.com/rkabadi/pyedimax to requirements
- Modified edimax.py to import pyedimax from python3 default packages
This commit is contained in:
Rohit Kabadi committed 2015-07-29 00:24:42 -07:00
1 parent 613c0122c0
commit f6811e858a
4 files changed
+5 -8

No files matched your search

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