#NEWLINE# def __init__( self , hass , name , rfdevice , protocol , pulselength , code_on , code_off ) : #NEWLINE# #INDENT# 'Initialize the switch.' #NEWLINE# self . _hass = self #NEWLINE# self . _name = name #NEWLINE# self . _state = False #NEWLINE# self . _rfdevice = rfdevice #NEWLINE# self . _protocol = protocol #NEWLINE# self . _pulselength = pulselength #NEWLINE# self . _code_on = code_on #NEWLINE# self . _code_off = code_off