'Initialize a Mochad Switch Device.'

def __init__(self, hass, ctrl, dev):

    from pymochad import device
    self._controller = ctrl
    self._address = dev[CONF_ADDRESS]
    self._name = dev.get(CONF_NAME, ('x10_switch_dev_%s' % self._address))
    self._comm_type = dev.get(mochad.CONF_COMM_TYPE, 'pl')
    self.device = device.Device(ctrl, self._address, comm_type=self._comm_type)
    self._state = self._get_device_status()
