'Initialize the device.'

def __init__(self, hass, config):

    self._config = config
    self._state = False
    self._data = None
    _LOGGER.debug('Initalizing    KNX    group    address    for    %s    (%s)', self.name, self.address)
    def handle_knx_message(addr, data):
        'Handle    an    incoming    KNX    frame.\n\n                                                Handle    an    incoming    frame    and    update    our    status    if    it    contains\n                                                information    relating    to    this    device.\n                                                '
        if ((addr == self.state_address) or (addr == self.address)):
            self._state = data[0]
            self.schedule_update_ha_state()
    KNXTUNNEL.register_listener(self.address, handle_knx_message)
    if self.state_address:
        KNXTUNNEL.register_listener(self.state_address, handle_knx_message)
