'Initialize a Foscam camera.'

def __init__(self, device_info):

    super(FoscamCam, self).__init__()
    ip_address = device_info.get(CONF_IP)
    port = device_info.get(CONF_PORT)
    self._username = device_info.get(CONF_USERNAME)
    self._password = device_info.get(CONF_PASSWORD)
    self._name = device_info.get(CONF_NAME)
    self._motion_status = False
    from foscam import FoscamCamera
    self._foscam_session = FoscamCamera(ip_address, port, self._username, self._password)
