mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Move import module
This commit is contained in:
parent
a33220db7f
commit
128e3bb762
@ -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…
x
Reference in New Issue
Block a user