Move imports in rfxtrx component (#27549)

This commit is contained in:
javicalle authored and Paulus Schoutsen committed 2019-10-12 12:37:59 -07:00
1 parent 3873a1b070
commit 40e5beb0ed
9 files changed
+11 -32

No files matched your search

+1 -3
View File
@@ -1,6 +1,6 @@
"""Support for RFXtrx lights."""
import logging
import RFXtrx as rfxtrxmod
import voluptuous as vol
from homeassistant.components import rfxtrx
@@ -45,8 +45,6 @@ SUPPORT_RFXTRX = SUPPORT_BRIGHTNESS
def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the RFXtrx platform."""
import RFXtrx as rfxtrxmod
lights = rfxtrx.get_devices_from_config(config, RfxtrxLight)
add_entities(lights)