1
0
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:
badele
2015-09-29 22:47:22 +02:00
parent d64f0ddd41
commit cc47e39006
3 changed files with 35 additions and 14 deletions

View File

@@ -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