Move import module

This commit is contained in:
badele 2015-11-26 08:27:31 +01:00
parent a33220db7f
commit 128e3bb762
3 changed files with 4 additions and 3 deletions

View file

@ -8,7 +8,6 @@ https://home-assistant.io/components/light.rfxtrx/
"""
import logging
import homeassistant.components.rfxtrx as rfxtrx
import RFXtrx as rfxtrxmod
from homeassistant.components.light import Light
from homeassistant.util import slugify
@ -25,6 +24,8 @@ _LOGGER = logging.getLogger(__name__)
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
""" Setup the RFXtrx platform. """
import RFXtrx as rfxtrxmod
lights = []
devices = config.get('devices', None)

View file

@ -4,7 +4,7 @@ homeassistant.components.rfxtrx
Provides support for RFXtrx components.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/rfxtrx.html
https://home-assistant.io/components/rfxtrx/
"""
import logging
from homeassistant.util import slugify

View file

@ -8,7 +8,6 @@ https://home-assistant.io/components/switch.rfxtrx/
"""
import logging
import homeassistant.components.rfxtrx as rfxtrx
import RFXtrx as rfxtrxmod
from homeassistant.components.switch import SwitchDevice
from homeassistant.util import slugify
@ -25,6 +24,7 @@ _LOGGER = logging.getLogger(__name__)
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
""" Setup the RFXtrx platform. """
import RFXtrx as rfxtrxmod
# Add switch from config file
switchs = []