'Initialize the switch.'

def __init__(self, hass, name, rfdevice, protocol, pulselength, signal_repetitions, code_on, code_off):

    self._hass = hass
    self._name = name
    self._state = False
    self._rfdevice = rfdevice
    self._protocol = protocol
    self._pulselength = pulselength
    self._code_on = code_on
    self._code_off = code_off
    self._rfdevice.tx_repeat = signal_repetitions
