Move import module
This commit is contained in:
parent
a33220db7f
commit
128e3bb762
3 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue