mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
Add send capability
This commit is contained in:
@@ -15,7 +15,7 @@ CONF_DEVICE = 'device'
|
||||
RECEIVED_EVT_SUBSCRIBERS = []
|
||||
RFX_DEVICES = {}
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
RFXOBJECT = None
|
||||
|
||||
def setup(hass, config):
|
||||
""" Setup the Rfxtrx component. """
|
||||
@@ -34,7 +34,8 @@ def setup(hass, config):
|
||||
return False
|
||||
|
||||
# Init the rfxtrx module
|
||||
global RFXOBJECT
|
||||
device = config[DOMAIN][CONF_DEVICE]
|
||||
rfxtrxmod.Core(device, handle_receive)
|
||||
RFXOBJECT = rfxtrxmod.Core(device, handle_receive)
|
||||
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user