Move imports in rfxtrx component (#27549)
This commit is contained in:
parent
3873a1b070
commit
40e5beb0ed
9 changed files with 11 additions and 32 deletions
|
@ -1,4 +1,5 @@
|
|||
"""Support for RFXtrx covers."""
|
||||
import RFXtrx as rfxtrxmod
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components import rfxtrx
|
||||
|
@ -34,8 +35,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||
|
||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
"""Set up the RFXtrx cover."""
|
||||
import RFXtrx as rfxtrxmod
|
||||
|
||||
covers = rfxtrx.get_devices_from_config(config, RfxtrxCover)
|
||||
add_entities(covers)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue