'Initialize a LiteJet switch.'

def __init__(self, hass, lj, i, name):

    self._hass = hass
    self._lj = lj
    self._index = i
    self._state = False
    self._name = name
    lj.on_switch_pressed(i, self._on_switch_pressed)
    lj.on_switch_released(i, self._on_switch_released)
